From 6e0f5287ea4df66847f97489f00f2c8214bad605 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 11 Apr 2020 09:22:05 +0200 Subject: 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 --- channels.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'channels.h') 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(static_cast(this)->GetByNumber(Number, SkipGap)); } -- cgit v1.2.3