Return menu result

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1889 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 1800f9073d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-11-25 (Fri, 25 Nov 2011)
This commit is contained in:
[CST] Focus
2011-11-25 09:03:51 +00:00
parent 70d2cb402e
commit 6e2e179a52
2 changed files with 5 additions and 7 deletions

View File

@@ -86,11 +86,11 @@ int CSoftwareUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
return res;
}
showSoftwareUpdate();
res = showSoftwareUpdate();
return res;
}
void CSoftwareUpdate::showSoftwareUpdate()
int CSoftwareUpdate::showSoftwareUpdate()
/* shows the menue and options for software update */
{
CMenuWidget* softUpdate = new CMenuWidget(LOCALE_MAINMENU_SERVICE, NEUTRINO_ICON_UPDATE, width);
@@ -113,10 +113,11 @@ void CSoftwareUpdate::showSoftwareUpdate()
softUpdate->addItem(GenericMenuSeparatorLine);
softUpdate->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_CHECKUPDATE, true, NULL, new CFlashUpdate(), "", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW ));
softUpdate->exec (NULL, "");
int res = softUpdate->exec (NULL, "");
softUpdate->hide ();
selected = softUpdate->getSelected();
delete softUpdate;
return res;
}
/* shows experts-functions to read/write to the mtd */
@@ -131,6 +132,3 @@ void CSoftwareUpdate::showSoftwareUpdateExpert(CMenuWidget *mtd_expert)
mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_URL_FILE, true, g_settings.softupdate_url_file, input_url_file));
}