From 765e4509dbdc8e52a79399dd8af41d74de3ee14b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 29 Jul 2018 00:54:55 +0200 Subject: [PATCH] record: show record-menu after no-records-hint; ... It makes no sense to show the menu only if records are running. There are items to start record and timeshift. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/df96507e424b9feb6a70a0d40260fdc3d1241855 Author: vanhofen Date: 2018-07-29 (Sun, 29 Jul 2018) Origin message was: ------------------ - record: show record-menu after no-records-hint; ... It makes no sense to show the menu only if records are running. There are items to start record and timeshift. ------------------ This commit was generated by Migit --- src/driver/record.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index 8c8888970..9ce775065 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -1518,9 +1518,10 @@ int CRecordManager::exec(CMenuTarget* parent, const std::string & actionKey ) return menu_return::RETURN_EXIT_ALL; } else if(actionKey == "Stop_record") { - if(!CRecordManager::getInstance()->RecordingStatus()) { - ShowHint(LOCALE_MAINMENU_RECORDING_STOP, g_Locale->getText(LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING), 450, 2); - return menu_return::RETURN_EXIT_ALL; + if (!CRecordManager::getInstance()->RecordingStatus()) + { + ShowHint(LOCALE_MAINMENU_RECORDING_STOP, LOCALE_RECORDINGMENU_RECORD_IS_NOT_RUNNING, 450, 2); + //return menu_return::RETURN_EXIT_ALL; } }