summaryrefslogtreecommitdiff
path: root/recmenumanager.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-09 18:25:58 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-04-14 13:58:07 +0200
commit6e8378743714df291cd421e6764145fc3bf00cbc (patch)
tree5ed402237b0f38ce92fa01a80dc5c198b680e743 /recmenumanager.c
parent333a3d397f0a8bbefaef720bd086d61bb10c839c (diff)
downloadvdr-plugin-tvguide-6e8378743714df291cd421e6764145fc3bf00cbc.tar.gz
vdr-plugin-tvguide-6e8378743714df291cd421e6764145fc3bf00cbc.tar.bz2
Channelgroup in cRecMenuSearchTimerEdit
Diffstat (limited to 'recmenumanager.c')
-rw-r--r--recmenumanager.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/recmenumanager.c b/recmenumanager.c
index 38381a4..bb5546a 100644
--- a/recmenumanager.c
+++ b/recmenumanager.c
@@ -311,7 +311,9 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) {
if (epgSearchTemplates.size() > 0) {
activeMenu = new cRecMenuSearchTimerTemplates(searchTimer, epgSearchTemplates);
} else {
- activeMenu = new cRecMenuSearchTimerEdit(searchTimer, false);
+ std::vector<std::string> channelGroups;
+ recManager->GetChannelGroups(&channelGroups);
+ activeMenu = new cRecMenuSearchTimerEdit(searchTimer, false, channelGroups);
}
}
activeMenu->Display();
@@ -329,12 +331,14 @@ eOSState cRecMenuManager::StateMachine(eRecMenuState nextState) {
searchTimer = menu->GetSearchTimer();
} else if (cRecMenuSearchTimerEdit *menu = dynamic_cast<cRecMenuSearchTimerEdit*>(activeMenu)) {
searchTimer = menu->GetSearchTimer();
- advancedOptions = (nextState == rmsSearchTimerEditAdvanced)?true:false;
+ advancedOptions = (nextState == rmsSearchTimerEditAdvanced) ? true : false;
} else if (cRecMenuSearchTimerTemplates *menu = dynamic_cast<cRecMenuSearchTimerTemplates*>(activeMenu)) {
searchTimer = menu->GetSearchTimer();
} else break;
delete activeMenu;
- activeMenu = new cRecMenuSearchTimerEdit(searchTimer, advancedOptions);
+ std::vector<std::string> channelGroups;
+ recManager->GetChannelGroups(&channelGroups);
+ activeMenu = new cRecMenuSearchTimerEdit(searchTimer, advancedOptions, channelGroups);
activeMenu->Display();
break; }
case rmsSearchTimerTest: {