From 28ddeb274bd9ffc0ba7c021d93103b12725e6950 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 11 Apr 2018 11:31:09 +0100 Subject: [PATCH] Fix logic error in DBus script evaluation Was mentioned in review, yet somehow slipped through --- shell/shellcorona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 2b16d9098..b9dcab53b 100644 --- a/shell/shellcorona.cpp +++ b/shell/shellcorona.cpp @@ -1465,7 +1465,7 @@ void ShellCorona::loadKWinScriptInInteractiveConsole(const QString &script) } void ShellCorona::evaluateScript(const QString &script) { - if (immutability() != Plasma::Types::SystemImmutable) { + if (immutability() == Plasma::Types::SystemImmutable) { if (calledFromDBus()) { sendErrorReply(QDBusError::Failed, QStringLiteral("Widgets are locked")); }