summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
commit457f5dd14c426c7324a7987c4bcd7f9b2b641b6d (patch)
tree6f2d2d38abfdc9474aa3eb01fc4bb1bc6f0e4d56 /menu.c
parent9887c0765bb2e2653dfc0325e8b6784084787102 (diff)
downloadvdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.gz
vdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.bz2
The status changes of EPG events are now logged for all channels that have timers
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/menu.c b/menu.c
index 0d555286..f3c9fab9 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.423 2006/02/28 12:15:43 kls Exp $
+ * $Id: menu.c 1.424 2006/02/28 13:58:00 kls Exp $
*/
#include "menu.h"
@@ -500,12 +500,10 @@ eOSState cMenuChannels::Delete(void)
cChannel *channel = GetChannel(Current());
int DeletedChannel = channel->Number();
// Check if there is a timer using this channel:
- for (cTimer *ti = Timers.First(); ti; ti = Timers.Next(ti)) {
- if (ti->Channel() == channel) {
- Skins.Message(mtError, tr("Channel is being used by a timer!"));
- return osContinue;
- }
- }
+ if (channel->HasTimer()) {
+ Skins.Message(mtError, tr("Channel is being used by a timer!"));
+ return osContinue;
+ }
if (Interface->Confirm(tr("Delete channel?"))) {
Channels.Del(channel);
cOsdMenu::Del(Index);