summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-24 21:13:26 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-01-24 21:13:26 +0100
commit8fe92bb90e69b154d2fb06ffe246335b41f302af (patch)
tree6b7b6f9c033571d98aa41e4486f30efeb7f9c43b
parent300f2f4ed0ff51cae9785f6d538347b20dea444a (diff)
downloadvdr-plugin-live-8fe92bb90e69b154d2fb06ffe246335b41f302af.tar.gz
vdr-plugin-live-8fe92bb90e69b154d2fb06ffe246335b41f302af.tar.bz2
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.
-rw-r--r--pages/multischedule.ecpp6
1 files changed, 5 insertions, 1 deletions
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<std::string> channel_groups_names;
std::vector< std::vector<int> > channel_groups_numbers;
std::vector<std::string> 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() )