diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 3db880fe1..ee78b7b10 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1223,7 +1223,11 @@ int CTimerList::newTimer() 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 | CPlugins::P_TYPE_LUA, timerNew.pluginName); + CPluginChooser plugin_chooser(LOCALE_TIMERLIST_PLUGIN, CPlugins::P_TYPE_SCRIPT | CPlugins::P_TYPE_TOOL +#if ENABLE_LUA + | CPlugins::P_TYPE_LUA +#endif + , timerNew.pluginName); CMenuForwarder *m10 = new CMenuForwarder(LOCALE_TIMERLIST_PLUGIN, false, timerNew.pluginName, &plugin_chooser);