CTimerList: Fix displaying and saving reminder timer

This commit is contained in:
M. Liebmann
2014-02-12 05:46:04 +01:00
parent 92fce346c0
commit b2446667e9
2 changed files with 5 additions and 3 deletions

View File

@@ -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