summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-08 10:48:53 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-08 10:48:53 +0100
commitd6c26af6968fc18710d4575c48ef1da6f348c743 (patch)
tree9c29fcbe7a10246c1fa6383443c019bcd599f96c /menu.c
parent12308b3c29c89c077b456558507af7d77495344d (diff)
downloadvdr-d6c26af6968fc18710d4575c48ef1da6f348c743.tar.gz
vdr-d6c26af6968fc18710d4575c48ef1da6f348c743.tar.bz2
Using SetCurrentChannel(int ChannelNumber) instead of the deprecated SetCurrentChannel(const cChannel *Channel)
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index 5ec32ce6..1d72d886 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.14 2016/12/08 10:39:29 kls Exp $
+ * $Id: menu.c 4.15 2016/12/08 10:48:16 kls Exp $
*/
#include "menu.h"
@@ -520,7 +520,7 @@ eOSState cMenuChannels::Delete(void)
if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring())
Channels->SwitchTo(CurrentChannel->Number());
else
- cDevice::SetCurrentChannel(CurrentChannel);
+ cDevice::SetCurrentChannel(CurrentChannel->Number());
}
}
channelsStateKey.Remove(Deleted);
@@ -547,7 +547,7 @@ void cMenuChannels::Move(int From, int To)
if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring())
Channels->SwitchTo(CurrentChannel->Number());
else
- cDevice::SetCurrentChannel(CurrentChannel);
+ cDevice::SetCurrentChannel(CurrentChannel->Number());
}
}
channelsStateKey.Remove();