summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-04-11 09:22:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2020-04-11 09:22:05 +0200
commit6e0f5287ea4df66847f97489f00f2c8214bad605 (patch)
tree6f37287dcaa4c1889072f16760a917d4adf93aca /channels.h
parentf63a066b98039663ff35d21fd42a66eb143d93ab (diff)
downloadvdr-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels.h b/channels.h
index 1543f95b..d368b558 100644
--- a/channels.h
+++ b/channels.h
@@ -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)); }