mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*neutrino hdd setup: if no drive was found, ensure that no drive is selectable
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2038 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -108,6 +108,11 @@ int CHDDMenuHandler::doMenu ()
|
||||
|
||||
|
||||
CMenuWidget* hddmenu = new CMenuWidget(LOCALE_MAINMENU_SETTINGS, NEUTRINO_ICON_SETTINGS, width, MN_WIDGET_ID_DRIVESETUP);
|
||||
|
||||
//if no drives found, select 'back'
|
||||
if (hdd_found == 0 && hddmenu->getSelected() != -1)
|
||||
hddmenu->setSelected(2);
|
||||
|
||||
hddmenu->addIntroItems(LOCALE_HDD_SETTINGS);
|
||||
|
||||
hddmenu->addItem(new CMenuForwarder(LOCALE_HDD_ACTIVATE, true, "", new CHDDDestExec(), NULL, CRCInput::RC_red,NEUTRINO_ICON_BUTTON_RED));
|
||||
|
Reference in New Issue
Block a user