From 12a829c8a491ea81c1624abf4e6caeb602063dff Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 10 Mar 2013 00:15:46 +0100 Subject: [PATCH] channellist: preset favorite bouquets when adding channels when adding channels from the channellist context menu, the useful targets are the favorites bouquets, so pre-select them Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a91b58aac46df43246a44f2723502af2c64cec04 Author: Stefan Seyfried Date: 2013-03-10 (Sun, 10 Mar 2013) ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 09ccc1253..85e187aa3 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -406,6 +406,10 @@ int CChannelList::doChannelMenu(void) break; case 2: // add to + /* default to favorites list, it makes no sense to add to autogenerated bouquets */ + if (CNeutrinoApp::getInstance()->GetChannelMode() != LIST_MODE_FAV) + CNeutrinoApp::getInstance()->SetChannelMode(LIST_MODE_FAV); + do { bouquet_id = bouquetList->exec(false); } while(bouquet_id == -3);