From e962dabfed44ebe061e5741c0a1bacda867a053f Mon Sep 17 00:00:00 2001 From: thilo Date: Tue, 1 Nov 2011 23:42:02 +0000 Subject: [PATCH] *neutrino record: if no recordings are running, set the focus to the record menu item git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1805 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/record.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index d139d2b6a..52cbef7db 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -1254,9 +1254,13 @@ bool CRecordManager::ShowMenu(void) bool status_ts = IsTimeshift(live_channel_id); bool status_rec = RecordingStatus(live_channel_id) && !status_ts; + //record item iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_REC_AKT, (!status_rec && !status_ts), NULL, this, "Record", CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED); - menu.addItem(iteml, false); + //if no recordings are running, set the focus to the record menu item + menu.addItem(iteml, rec_count == 0 ? true: false); + + //timeshift item iteml = new CMenuForwarder(LOCALE_RECORDINGMENU_MULTIMENU_TIMESHIFT, !status_ts, NULL, this, "Timeshift", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW); menu.addItem(iteml, false);