summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-11 21:42:23 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-11 21:42:23 +0100
commit89ecc6b4527740bb4307602dc5fb5416d5c40cfc (patch)
tree5d8387dbe2f3a10ac0f676ba09a530dc7c5442a9 /menu.c
parent7f9d14ee8b181a999afb997d74a24b3087fd9d33 (diff)
downloadvdr-89ecc6b4527740bb4307602dc5fb5416d5c40cfc.tar.gz
vdr-89ecc6b4527740bb4307602dc5fb5416d5c40cfc.tar.bz2
Fixed resetting the EPG data versions after changing the preferred languages
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/menu.c b/menu.c
index cf9d8eb1..a2a408d3 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.279 2004/01/11 15:40:32 kls Exp $
+ * $Id: menu.c 1.280 2004/01/11 21:37:17 kls Exp $
*/
#include "menu.h"
@@ -2068,10 +2068,6 @@ void cMenuSetupEPG::Setup(void)
eOSState cMenuSetupEPG::ProcessKey(eKeys Key)
{
- int oldnumLanguages = numLanguages;
- int oldSetSystemTime = data.SetSystemTime;
-
- eOSState state = cMenuSetupBase::ProcessKey(Key);
if (Key == kOk) {
bool Modified = numLanguages != originalNumLanguages;
if (!Modified) {
@@ -2085,7 +2081,12 @@ eOSState cMenuSetupEPG::ProcessKey(eKeys Key)
if (Modified)
cSchedules::ResetVersions();
}
- else if (Key != kNone) {
+
+ int oldnumLanguages = numLanguages;
+ int oldSetSystemTime = data.SetSystemTime;
+
+ eOSState state = cMenuSetupBase::ProcessKey(Key);
+ if (Key != kNone) {
if (numLanguages != oldnumLanguages || data.SetSystemTime != oldSetSystemTime) {
for (int i = oldnumLanguages; i < numLanguages; i++) {
data.EPGLanguages[i] = 0;