From 0d539053d868ea82932a2b71d38edc33e9c93829 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 5 Apr 2012 20:30:57 +0400 Subject: [PATCH] gui/favorites.cpp: commit bouquetList checks, it never should be NULL --- src/gui/favorites.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/favorites.cpp b/src/gui/favorites.cpp index addef994a..a6703fd27 100644 --- a/src/gui/favorites.cpp +++ b/src/gui/favorites.cpp @@ -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)