From aaa3dc1ceceb5117789b719cba030646d8f2aea0 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/b8cd692257dfe8bdada75434a46ea6e121a37eb2 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 9b2965573..8e92806e7 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -398,6 +398,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);