diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 8752cc696..93c91ad5e 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -790,7 +790,7 @@ int CTPSelectHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/ old_position = position; } - CMenuWidget menu(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS); + CMenuWidget menu(LOCALE_SCANTS_SELECT_TP, NEUTRINO_ICON_SETTINGS, width); CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select); menu.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); //add cancel button, ensures that we have enought space left from item caption diff --git a/src/gui/scan_setup.h b/src/gui/scan_setup.h index 4c82e19ea..88ede9320 100644 --- a/src/gui/scan_setup.h +++ b/src/gui/scan_setup.h @@ -45,6 +45,9 @@ class CScanSetup : public CMenuTarget { + protected: + int width; + private: CSatelliteSetupNotifier *satNotify; CAllUsalsNotifier *usalsNotify; @@ -53,7 +56,7 @@ class CScanSetup : public CMenuTarget bool is_wizard; - int width, selected; + int selected; int dmode; int sfound; int fec_count; @@ -100,7 +103,7 @@ class CScanSetup : public CMenuTarget int exec(CMenuTarget* parent, const std::string & actionKey = ""); }; -class CTPSelectHandler : public CMenuTarget +class CTPSelectHandler : public CScanSetup { public: int exec(CMenuTarget* parent, const std::string &actionkey);