Commit ddf452b6 authored by David Edmundson's avatar David Edmundson
Browse files

Don't block evaluating DBus scripts if widgets are locked.

Summary:
Original decision didn't really have a rationale:
https://git.reviewboard.kde.org/r/125648/

It's causing bugs in people doing somewhat sensible things.
BUG: 380347

If widgets are locked, the script will still fail when it tries to do
something it can't.

Reviewers: #plasma, broulik

Subscribers: mart, broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D11375
parent 57385777
......@@ -1465,7 +1465,7 @@ void ShellCorona::loadKWinScriptInInteractiveConsole(const QString &script)
}
void ShellCorona::evaluateScript(const QString &script) {
if (immutability() != Plasma::Types::Mutable) {
if (immutability() != Plasma::Types::SystemImmutable) {
if (calledFromDBus()) {
sendErrorReply(QDBusError::Failed, QStringLiteral("Widgets are locked"));
}
......
Supports Markdown
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