From f817f18ffbb94d46a6b2a89f5b3044f6f59098ef Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Thu, 26 Dec 2013 22:05:06 +0100 Subject: [PATCH] CRecordSetup: Fix save RecordingSafety --- src/gui/record_setup.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/record_setup.cpp b/src/gui/record_setup.cpp index 02b8aebfc..7349c9ac2 100644 --- a/src/gui/record_setup.cpp +++ b/src/gui/record_setup.cpp @@ -291,14 +291,14 @@ void CRecordSetup::showRecordTimerSetup(CMenuWidget *menu_timersettings) //start CMenuOptionNumberChooser *ch = new CMenuOptionNumberChooser(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE, - &g_settings.record_safety_time_before, true, 0, 99, NULL); + &g_settings.record_safety_time_before, true, 0, 99, this); ch->setNumberFormat(nf); ch->setHint("", LOCALE_MENU_HINT_RECORD_TIMEBEFORE); menu_timersettings->addItem(ch); //end ch = new CMenuOptionNumberChooser(LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_AFTER, - &g_settings.record_safety_time_after, true, 0, 99, NULL); + &g_settings.record_safety_time_after, true, 0, 99, this); ch->setNumberFormat(nf); ch->setHint("", LOCALE_MENU_HINT_RECORD_TIMEAFTER); menu_timersettings->addItem(ch); @@ -391,7 +391,7 @@ bool CRecordSetup::changeNotify(const neutrino_locale_t OptionName, void * /*dat { if (ARE_LOCALES_EQUAL(OptionName, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_BEFORE) || ARE_LOCALES_EQUAL(OptionName, LOCALE_TIMERSETTINGS_RECORD_SAFETY_TIME_AFTER)) { - g_Timerd->setRecordingSafety(g_settings.record_safety_time_before*60, g_settings.record_safety_time_after); + g_Timerd->setRecordingSafety(g_settings.record_safety_time_before*60, g_settings.record_safety_time_after*60); } else if(ARE_LOCALES_EQUAL(OptionName, LOCALE_RECORDINGMENU_APIDS_STD) || ARE_LOCALES_EQUAL(OptionName, LOCALE_RECORDINGMENU_APIDS_ALT) || ARE_LOCALES_EQUAL(OptionName, LOCALE_RECORDINGMENU_APIDS_AC3)) {