From 63f14f1ddf6d608f3ff9ce8021d2aff2f0aa4ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= Date: Wed, 9 Mar 2016 11:49:30 +0100 Subject: [PATCH] Allowing to override plasma mutability setting on containment creation This adds a 'Sledge Hammer'-like flag (trust me I know what I'm doing) for creating the containment even if the plasma is not set on 'mutable'. --- src/plasma/corona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index 037114a9b..5d17550cc 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -241,7 +241,7 @@ KSharedConfigPtr Corona::config() const Containment *Corona::createContainment(const QString &name, const QVariantList &args) { - if (d->immutability == Types::Mutable) { + if (d->immutability == Types::Mutable || args.contains("org.kde.plasma:force-create")) { return d->addContainment(name, args, 0); }