From 9936b7cdf4fd0f05b5d75d7d16ba32caa6ced35c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 5 Jan 2012 23:39:08 +0000 Subject: [PATCH] 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8b5f0b845c400dcdb87c0ee42e6cc9d534d2af3f Author: Thilo Graf Date: 2012-01-06 (Fri, 06 Jan 2012) Origin message was: ------------------ *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 --- src/gui/hdd_menu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index 218ecd722..7609e2c6b 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -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));