Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d1fc5796 authored by Laurent Montel's avatar Laurent Montel 😁

Exclude debug action

parent 39dc0e58
......@@ -480,16 +480,17 @@ void TemplatesCommandMenu::fillMenu()
fillMenuFromActionMap(commandMap, menu);
commandMap.clear();
//TODO exclude it.
// ******************************************************
menu = new KActionMenu(i18nc("Debug template commands menu", "Debug"), mMenu);
mMenu->addAction(menu);
if (!qEnvironmentVariableIsEmpty("KDEPIM_DEBUGGING")) {
// ******************************************************
menu = new KActionMenu(i18nc("Debug template commands menu", "Debug"), mMenu);
mMenu->addAction(menu);
for (int i = 0; i < debugCommandsCount; ++i) {
commandMap.insert(debugCommands[i].getLocalizedDisplayName(), debugCommands[i].command);
}
for (int i = 0; i < debugCommandsCount; ++i) {
commandMap.insert(debugCommands[i].getLocalizedDisplayName(), debugCommands[i].command);
}
fillMenuFromActionMap(commandMap, menu);
fillMenuFromActionMap(commandMap, menu);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment