correct the boolean test

This commit is contained in:
Aaron Seigo 2011-10-28 11:42:30 +02:00
parent 049a79a0f6
commit 8d108352d2

View File

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