From 47d9f81a6d5587411e0c7aa960f178dbffebe79f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 31 Mar 2011 13:44:51 +0000 Subject: [PATCH] neutrino zapit_setup: remember last selected item git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1364 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f3d3a67f0c1be0a4ccaeac790faf5d4ad0fa7b98 Author: Thilo Graf Date: 2011-03-31 (Thu, 31 Mar 2011) Origin message was: ------------------ *neutrino zapit_setup: remember last selected item git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1364 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/zapit_setup.cpp | 3 +++ src/gui/zapit_setup.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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();