mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CTimerList: Fix displaying and saving reminder timer
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user