summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-01 09:12:38 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-01 09:12:38 +0200
commit6b968a6b274fda3d8baeac9591d9d8e8fc43d2cd (patch)
tree4b2a3efee840ebb4957051380ca9f6dbc93e7a30 /menuitems.c
parentdaa904724785d52c6ca73416068d90f35721cc97 (diff)
downloadvdr-6b968a6b274fda3d8baeac9591d9d8e8fc43d2cd.tar.gz
vdr-6b968a6b274fda3d8baeac9591d9d8e8fc43d2cd.tar.bz2
Fixed handling the system time transponder setting in the Setup/EPG menu, which was broken by the min/max fix in cMenuEditIntItem
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/menuitems.c b/menuitems.c
index 34e0dd75..a20a64a1 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.c 1.34 2006/03/26 09:10:17 kls Exp $
+ * $Id: menuitems.c 1.35 2006/03/31 15:17:21 kls Exp $
*/
#include "menuitems.h"
@@ -588,11 +588,11 @@ eOSState cMenuEditChanItem::ProcessKey(eKeys Key)
// --- cMenuEditTranItem -----------------------------------------------------
cMenuEditTranItem::cMenuEditTranItem(const char *Name, int *Value, int *Source)
-:cMenuEditChanItem(Name, Value)
+:cMenuEditChanItem(Name, &number)
{
number = 0;
source = Source;
- transponder = *Value;
+ transponder = Value;
cChannel *channel = Channels.First();
while (channel) {
if (!channel->GroupSep() && *source == channel->Source() && ISTRANSPONDER(channel->Transponder(), *Value)) {
@@ -601,22 +601,17 @@ cMenuEditTranItem::cMenuEditTranItem(const char *Name, int *Value, int *Source)
}
channel = (cChannel *)channel->Next();
}
- *Value = number;
Set();
- *Value = transponder;
}
eOSState cMenuEditTranItem::ProcessKey(eKeys Key)
{
- *value = number;
eOSState state = cMenuEditChanItem::ProcessKey(Key);
- number = *value;
- cChannel *channel = Channels.GetByNumber(*value);
+ cChannel *channel = Channels.GetByNumber(number);
if (channel) {
*source = channel->Source();
- transponder = channel->Transponder();
+ *transponder = channel->Transponder();
}
- *value = transponder;
return state;
}