diff --git a/src/gui/zapit_setup.cpp b/src/gui/zapit_setup.cpp index a6ecb29bc..00a200952 100644 --- a/src/gui/zapit_setup.cpp +++ b/src/gui/zapit_setup.cpp @@ -39,6 +39,7 @@ CZapitSetup::CZapitSetup() { width = w_max (40, 10); //% + selected = -1; } CZapitSetup::~CZapitSetup() @@ -63,6 +64,7 @@ void CZapitSetup::showMenu() { //menue init CMenuWidget *zapit = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width); + zapit->setSelected(selected); zapit->addIntroItems(LOCALE_ZAPITSETUP_INFO); //zapit @@ -73,6 +75,7 @@ void CZapitSetup::showMenu() zapit->exec(NULL, ""); zapit->hide(); + selected = zapit->getSelected(); delete zapit; } diff --git a/src/gui/zapit_setup.h b/src/gui/zapit_setup.h index 8e8c7f3db..4265d9ed1 100644 --- a/src/gui/zapit_setup.h +++ b/src/gui/zapit_setup.h @@ -36,7 +36,7 @@ class CZapitSetup : public CMenuTarget, CChangeObserver private: CMenuForwarder *zapit1, *zapit2; - int width; + int width, selected; void showMenu();