diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index ee78b7b10..827cb877b 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -261,6 +261,7 @@ CTimerList::CTimerList() listmaxshow = 0; Timer = new CTimerdClient(); skipEventID=0; + timerNew_message = ""; /* most probable default */ saved_dispmode = (int)CVFD::MODE_TVRADIO; @@ -338,7 +339,7 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey) data= &eventinfo; } else if (timerNew.eventType==CTimerd::TIMER_REMIND) - data= timerNew.message; + data = (void*)timerNew_message.c_str(); else if (timerNew.eventType==CTimerd::TIMER_EXEC_PLUGIN) { if (strcmp(timerNew.pluginName, "---") == 0) @@ -1218,9 +1219,9 @@ int CTimerList::newTimer() CMenuOptionChooser* m8 = new CMenuOptionChooser(LOCALE_TIMERLIST_STANDBY, &timerNew_standby_on, TIMERLIST_STANDBY_OPTIONS, TIMERLIST_STANDBY_OPTION_COUNT, false); - std::string timerNew_message(timerNew.message); + timerNew_message = std::string(timerNew.message); CStringInputSMS timerSettings_msg(LOCALE_TIMERLIST_MESSAGE, &timerNew_message, 30, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789-.,:!?/ "); - CMenuForwarder *m9 = new CMenuForwarder(LOCALE_TIMERLIST_MESSAGE, false, timerNew.message, &timerSettings_msg ); + CMenuForwarder *m9 = new CMenuForwarder(LOCALE_TIMERLIST_MESSAGE, false, timerNew_message, &timerSettings_msg ); strcpy(timerNew.pluginName,"---"); CPluginChooser plugin_chooser(LOCALE_TIMERLIST_PLUGIN, CPlugins::P_TYPE_SCRIPT | CPlugins::P_TYPE_TOOL diff --git a/src/gui/timerlist.h b/src/gui/timerlist.h index 0266c6e04..c05c7f486 100644 --- a/src/gui/timerlist.h +++ b/src/gui/timerlist.h @@ -65,6 +65,7 @@ class CTimerList : public CMenuTarget int timerNew_standby_on; std::string timerNew_channel_name; std::string m_weekdaysStr; + std::string timerNew_message; int timer_apids_dflt; int timer_apids_std;