mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +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;
|
//const char * fav_bouquetname;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
|
#if 0
|
||||||
// no bouquet-List? do nothing
|
// no bouquet-List? do nothing
|
||||||
if (!bouquetList) return status;
|
if (!bouquetList) return status;
|
||||||
|
#endif
|
||||||
if(show_list)
|
if(show_list)
|
||||||
{
|
{
|
||||||
bouquet_id = bouquetList->exec(false);
|
bouquet_id = bouquetList->exec(false);
|
||||||
@@ -120,11 +120,12 @@ int CFavorites::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
if (parent)
|
if (parent)
|
||||||
parent->hide();
|
parent->hide();
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (!bouquetList) {
|
if (!bouquetList) {
|
||||||
ShowLocalizedMessage(LOCALE_FAVORITES_BOUQUETNAME, LOCALE_FAVORITES_NOBOUQUETS, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
ShowLocalizedMessage(LOCALE_FAVORITES_BOUQUETNAME, LOCALE_FAVORITES_NOBOUQUETS, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
CHintBox* hintBox = new CHintBox(LOCALE_FAVORITES_BOUQUETNAME, g_Locale->getText(LOCALE_FAVORITES_ADDCHANNEL), 380); // UTF-8
|
CHintBox* hintBox = new CHintBox(LOCALE_FAVORITES_BOUQUETNAME, g_Locale->getText(LOCALE_FAVORITES_ADDCHANNEL), 380); // UTF-8
|
||||||
if(!show_list)
|
if(!show_list)
|
||||||
|
Reference in New Issue
Block a user