From 8fe92bb90e69b154d2fb06ffe246335b41f302af Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 24 Jan 2011 21:13:26 +0100 Subject: Applied a patch (live-20110124-git-multischedule-setup-fi x.patch.gz) provided by Rolf Ahrenberg that makes changes in the setup of channelgroups to be reflected in the multischedule layout immediately. Not needing VDR (or the LIVE plugin) to be restarted. --- pages/multischedule.ecpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/multischedule.ecpp b/pages/multischedule.ecpp index e9b4260..c160aad 100644 --- a/pages/multischedule.ecpp +++ b/pages/multischedule.ecpp @@ -31,6 +31,7 @@ struct SchedEntry { int row_count; }; + std::string channel_groups_setting; std::vector channel_groups_names; std::vector< std::vector > channel_groups_numbers; std::vector times_names; @@ -62,7 +63,7 @@ pageTitle = trVDR("Schedule"); #define MINUTES_PER_ROW 5 #define CHARACTERS_PER_ROW 30 - if ( channel_groups_numbers.size() == 0 ) + if ( ( channel_groups_setting.compare(LiveSetup().GetChannelGroups()) != 0 ) || ( channel_groups_numbers.size() == 0 ) ) { // build the groups of channels to display std::string channelGroups=LiveSetup().GetChannelGroups(); @@ -87,6 +88,9 @@ pageTitle = trVDR("Schedule"); channelGroups = groups.str(); LiveSetup().SetChannelGroups( channelGroups ); } + channel_groups_names.clear(); + channel_groups_numbers.clear(); + channel_groups_setting = channelGroups; size_t groupSep; std::string thisGroup = ""; while ( ! channelGroups.empty() ) -- cgit v1.2.3