mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/favorites.cpp: commit bouquetList checks, it never should be NULL
This commit is contained in:
@@ -62,10 +62,10 @@ int CFavorites::addChannelToFavorites(bool show_list)
|
||||
//const char * fav_bouquetname;
|
||||
int status = 0;
|
||||
|
||||
|
||||
#if 0
|
||||
// no bouquet-List? do nothing
|
||||
if (!bouquetList) return status;
|
||||
|
||||
#endif
|
||||
if(show_list)
|
||||
{
|
||||
bouquet_id = bouquetList->exec(false);
|
||||
@@ -120,11 +120,12 @@ int CFavorites::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
#if 0
|
||||
if (!bouquetList) {
|
||||
ShowLocalizedMessage(LOCALE_FAVORITES_BOUQUETNAME, LOCALE_FAVORITES_NOBOUQUETS, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
return res;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
CHintBox* hintBox = new CHintBox(LOCALE_FAVORITES_BOUQUETNAME, g_Locale->getText(LOCALE_FAVORITES_ADDCHANNEL), 380); // UTF-8
|
||||
if(!show_list)
|
||||
|
Reference in New Issue
Block a user