diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-04-11 09:22:05 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-04-11 09:22:05 +0200 |
commit | 6e0f5287ea4df66847f97489f00f2c8214bad605 (patch) | |
tree | 6f37287dcaa4c1889072f16760a917d4adf93aca /channels.h | |
parent | f63a066b98039663ff35d21fd42a66eb143d93ab (diff) | |
download | vdr-6e0f5287ea4df66847f97489f00f2c8214bad605.tar.gz vdr-6e0f5287ea4df66847f97489f00f2c8214bad605.tar.bz2 |
Fixed moving channels between number groups in SVDRP's MOVC command and the Channels menu, in case a channel is moved to a higher number and into a numbered group
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.h 4.3 2017/06/10 15:06:40 kls Exp $ + * $Id: channels.h 4.4 2020/04/11 09:22:05 kls Exp $ */ #ifndef __CHANNELS_H @@ -230,6 +230,7 @@ public: int GetNextNormal(int Idx) const; ///< Get next normal channel (not group) int GetPrevNormal(int Idx) const; ///< Get previous normal channel (not group) void ReNumber(void); ///< Recalculate 'number' based on channel type + bool MoveNeedsDecrement(cChannel *From, cChannel *To); // Detect special case when moving a channel (closely related to Renumber()) void Del(cChannel *Channel); ///< Delete the given Channel from the list const cChannel *GetByNumber(int Number, int SkipGap = 0) const; cChannel *GetByNumber(int Number, int SkipGap = 0) { return const_cast<cChannel *>(static_cast<const cChannels *>(this)->GetByNumber(Number, SkipGap)); } |