diff --git a/scriptengines/javascript/plasmoid/appletinterface.cpp b/scriptengines/javascript/plasmoid/appletinterface.cpp index 8b78fdd1c..7dcfa8f2a 100644 --- a/scriptengines/javascript/plasmoid/appletinterface.cpp +++ b/scriptengines/javascript/plasmoid/appletinterface.cpp @@ -253,7 +253,7 @@ void AppletInterface::setActionSeparator(const QString &name) Plasma::Applet *a = applet(); QAction *action = a->action(name); - if (!action) { + if (action) { action->setSeparator(true); } else { action = new QAction(this);