From 3b6eccb0bf09ce49193ae39e76419524eb2ecc60 Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 6 Oct 2011 10:28:30 +0000 Subject: [PATCH] *neutrino record: use ts-icon instead '[TS]' git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1751 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/record.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index c84d74675..3b1b6b02c 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -1247,7 +1247,7 @@ bool CRecordManager::ShowMenu(void) this, "Timeshift", CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW); menu.addItem(iteml, false); - if(recmap_size > 0) + if(recmap_size > 0) { menu.addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_MAINMENU_RECORDING_STOP)); mutex.lock(); @@ -1259,17 +1259,17 @@ bool CRecordManager::ShowMenu(void) channel_ids[i] = channel_id; recording_ids[i] = inst->GetRecordingId(); + std::string title; + inst->GetRecordString(title); + + const char* mode_icon = NULL; if (inst->tshift_mode) - { - std::string tmp_title; - inst->GetRecordString(tmp_title); - title = "[TS] " + tmp_title; - }else - inst->GetRecordString(title); + mode_icon = NEUTRINO_ICON_AUTO_SHIFT; + sprintf(cnt, "%d", i); item = new CMenuForwarderNonLocalized(title.c_str(), true, NULL, - selector, cnt, CRCInput::convertDigitToKey((recmap_size == 1) ? 0 : shortcut++)); + selector, cnt, CRCInput::convertDigitToKey((recmap_size == 1) ? 0 : shortcut++), NULL, mode_icon); item->setItemButton(NEUTRINO_ICON_BUTTON_OKAY, true); menu.addItem(item, false); i++;