summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-26 13:53:50 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-26 13:53:50 +0200
commita86ed8181bc949c55ed808592471494a925e69a8 (patch)
treeb61df769a46fececbe05d74d5a3f2fe0f47d6dc9 /menu.c
parentfd0774c811fca36db9cc1200037e8e8ee2608bb8 (diff)
downloadvdr-a86ed8181bc949c55ed808592471494a925e69a8.tar.gz
vdr-a86ed8181bc949c55ed808592471494a925e69a8.tar.bz2
Fixed deleting the last recording in the 'Recordings' menu, which started pausing live video
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/menu.c b/menu.c
index 17954683..388e01bd 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.238 2003/04/26 11:50:14 kls Exp $
+ * $Id: menu.c 1.239 2003/04/26 13:51:19 kls Exp $
*/
#include "menu.h"
@@ -2496,8 +2496,10 @@ void cMenuMain::Set(const char *Plugin)
eOSState cMenuMain::ProcessKey(eKeys Key)
{
+ bool HadSubMenu = HasSubMenu();
int osdLanguage = Setup.OSDLanguage;
eOSState state = cOsdMenu::ProcessKey(Key);
+ HadSubMenu |= HasSubMenu();
switch (state) {
case osSchedule: return AddSubMenu(new cMenuSchedule);
@@ -2544,10 +2546,10 @@ eOSState cMenuMain::ProcessKey(eKeys Key)
break;
default: switch (Key) {
case kRecord:
- case kRed: if (!HasSubMenu())
+ case kRed: if (!HadSubMenu)
state = osRecord;
break;
- case kGreen: if (!HasSubMenu()) {
+ case kGreen: if (!HadSubMenu) {
int CurrentAudioTrack = -1;
const char **AudioTracks = cDevice::PrimaryDevice()->GetAudioTracks(&CurrentAudioTrack);
if (AudioTracks) {
@@ -2561,10 +2563,10 @@ eOSState cMenuMain::ProcessKey(eKeys Key)
}
}
break;
- case kYellow: if (!HasSubMenu())
+ case kYellow: if (!HadSubMenu)
state = osPause;
break;
- case kBlue: if (!HasSubMenu())
+ case kBlue: if (!HadSubMenu)
state = replaying ? osStopReplay : cReplayControl::LastReplayed() ? osReplay : osContinue;
break;
default: break;