From 3ceb3c2bb8aaa6aa48a0d7d43b0264fcf644bbaa Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 1 Nov 2011 23:42:08 +0000 Subject: [PATCH] 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/038411e75cadc53426569d0b6446400302f296b2 Author: Thilo Graf 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 was generated by Migit --- src/driver/record.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 52cbef7db..8d45f6fc8 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -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"