summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-05-20 13:01:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-05-20 13:01:34 +0200
commit0b9870959beb7ae6a063f73fd5fada8f1faefadb (patch)
treecc74b43431d8694df490b525e9dc79ddaff7fcb2 /menu.c
parent4100b47b370d10caa28d9823cd70f77a34004459 (diff)
downloadvdr-0b9870959beb7ae6a063f73fd5fada8f1faefadb.tar.gz
vdr-0b9870959beb7ae6a063f73fd5fada8f1faefadb.tar.bz2
Fixed handling remote timers
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/menu.c b/menu.c
index 43ff7280..ae65f2d5 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 4.27 2017/05/17 09:15:51 kls Exp $
+ * $Id: menu.c 4.28 2017/05/20 13:00:21 kls Exp $
*/
#include "menu.h"
@@ -1328,7 +1328,7 @@ eOSState cMenuTimers::New(void)
if (HasSubMenu())
return osContinue;
cTimer *Timer = new cTimer;
- if (*Setup.SVDRPDefaultHost)
+ if (Setup.SVDRPPeering && *Setup.SVDRPDefaultHost)
Timer->SetRemote(Setup.SVDRPDefaultHost);
return AddSubMenu(new cMenuEditTimer(Timer, true));
}
@@ -1660,7 +1660,7 @@ eOSState cMenuWhatsOn::Record(void)
return AddSubMenu(new cMenuEditTimer(Timer));
}
cTimer *Timer = new cTimer(item->event);
- if (*Setup.SVDRPDefaultHost)
+ if (Setup.SVDRPPeering && *Setup.SVDRPDefaultHost)
Timer->SetRemote(Setup.SVDRPDefaultHost);
if (cTimer *t = Timers->GetTimer(Timer)) {
delete Timer;
@@ -1674,7 +1674,6 @@ eOSState cMenuWhatsOn::Record(void)
if (!HandleRemoteModifications(Timer)) {
// must add the timer before HandleRemoteModifications to get proper log messages with timer ids
Timers->Del(Timer);
- delete Timer;
}
}
if (HasSubMenu())
@@ -1944,7 +1943,7 @@ eOSState cMenuSchedule::Record(void)
return AddSubMenu(new cMenuEditTimer(Timer));
}
cTimer *Timer = new cTimer(item->event);
- if (*Setup.SVDRPDefaultHost)
+ if (Setup.SVDRPPeering && *Setup.SVDRPDefaultHost)
Timer->SetRemote(Setup.SVDRPDefaultHost);
if (cTimer *t = Timers->GetTimer(Timer)) {
delete Timer;
@@ -1958,7 +1957,6 @@ eOSState cMenuSchedule::Record(void)
if (!HandleRemoteModifications(Timer)) {
// must add the timer before HandleRemoteModifications to get proper log messages with timer ids
Timers->Del(Timer);
- delete Timer;
}
}
if (HasSubMenu())