neutrino record: if only one recording is running, set the focus to this menu item

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


Origin commit data
------------------
Commit: 038411e75c
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-11-02 (Wed, 02 Nov 2011)

Origin message was:
------------------
*neutrino record: if only one recording is running, set the focus to this menu item

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1806 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
2011-11-01 23:42:08 +00:00
parent e020bcdf66
commit c4441f95aa

View File

@@ -1289,7 +1289,9 @@ bool CRecordManager::ShowMenu(void)
item = new CMenuForwarderNonLocalized(title.c_str(), true, NULL,
selector, cnt, CRCInput::convertDigitToKey((rec_count == 1) ? 0 : shortcut++), NULL, mode_icon);
item->setItemButton(NEUTRINO_ICON_BUTTON_OKAY, true);
menu.addItem(item, false);
//if only one recording is running, set the focus to this menu item
menu.addItem(item, rec_count == 1 ? true: false);
i++;
}
if(i > 1) //menu item "stopp all records"