1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Automatically closing 'Commands' menu if command doesn't return any output

This commit is contained in:
Klaus Schmidinger 2002-10-13 09:16:32 +02:00
parent e2aee54d12
commit a19ea98cce
2 changed files with 4 additions and 1 deletions

View File

@ -1603,3 +1603,5 @@ Video Disk Recorder Revision History
title, which will result in a confirmation prompt before executing the title, which will result in a confirmation prompt before executing the
command. command.
- Changed a few leftover 'new char[...]' to MALLOC(char, ...). - Changed a few leftover 'new char[...]' to MALLOC(char, ...).
- If a command executed from the "Commands" menu doesn't return any output, the
OSD will now be closed automatically.

3
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.215 2002/10/13 08:44:33 kls Exp $ * $Id: menu.c 1.216 2002/10/13 09:15:26 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2093,6 +2093,7 @@ eOSState cMenuCommands::Execute(void)
const char *Result = command->Execute(); const char *Result = command->Execute();
if (Result) if (Result)
return AddSubMenu(new cMenuText(command->Title(), Result, fontFix)); return AddSubMenu(new cMenuText(command->Title(), Result, fontFix));
return osEnd;
} }
} }
return osContinue; return osContinue;