diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-25 12:44:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-25 12:44:32 +0100 |
commit | 8b9e1f513fcbb216fae5f1f889dd0da6b522d62c (patch) | |
tree | 57900a8ba8af9355958869121dd8aee1e9b872fe /menu.c | |
parent | fdbf796b6b9dbe83c6874002c1e01dbac09f7eae (diff) | |
download | vdr-8b9e1f513fcbb216fae5f1f889dd0da6b522d62c.tar.gz vdr-8b9e1f513fcbb216fae5f1f889dd0da6b522d62c.tar.bz2 |
Fixed a superfluous call to the skin's SetRecording() function after renaming a recording
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 3.15 2013/12/27 09:00:24 kls Exp $ + * $Id: menu.c 3.16 2014/01/25 12:40:28 kls Exp $ */ #include "menu.h" @@ -2473,12 +2473,8 @@ void cMenuRecording::Display(void) eOSState cMenuRecording::ProcessKey(eKeys Key) { - if (HasSubMenu()) { - eOSState state = cOsdMenu::ProcessKey(Key); - if (state == osUser1) - CloseSubMenu(); - return state; - } + if (HasSubMenu()) + return cOsdMenu::ProcessKey(Key); else if (!RefreshRecording()) return osBack; // the recording has vanished, so close this menu switch (int(Key)) { |