Changeset View
Changeset View
Standalone View
Standalone View
shell/shellcorona.cpp
Show First 20 Lines • Show All 1459 Lines • ▼ Show 20 Line(s) | |||||
1460 | { | 1460 | { | ||
1461 | showInteractiveKWinConsole(); | 1461 | showInteractiveKWinConsole(); | ||
1462 | if (m_interactiveConsole) { | 1462 | if (m_interactiveConsole) { | ||
1463 | m_interactiveConsole->rootObject()->setProperty("script", script); | 1463 | m_interactiveConsole->rootObject()->setProperty("script", script); | ||
1464 | } | 1464 | } | ||
1465 | } | 1465 | } | ||
1466 | 1466 | | |||
1467 | void ShellCorona::evaluateScript(const QString &script) { | 1467 | void ShellCorona::evaluateScript(const QString &script) { | ||
1468 | if (immutability() != Plasma::Types::Mutable) { | 1468 | if (immutability() != Plasma::Types::SystemImmutable) { | ||
1469 | if (calledFromDBus()) { | 1469 | if (calledFromDBus()) { | ||
1470 | sendErrorReply(QDBusError::Failed, QStringLiteral("Widgets are locked")); | 1470 | sendErrorReply(QDBusError::Failed, QStringLiteral("Widgets are locked")); | ||
1471 | } | 1471 | } | ||
1472 | return; | 1472 | return; | ||
1473 | } | 1473 | } | ||
1474 | 1474 | | |||
1475 | WorkspaceScripting::ScriptEngine scriptEngine(this); | 1475 | WorkspaceScripting::ScriptEngine scriptEngine(this); | ||
1476 | 1476 | | |||
▲ Show 20 Lines • Show All 667 Lines • Show Last 20 Lines |