From 309c64f5e90453c5253baf19e6c01759e8aa6f83 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 16 Mar 2016 12:33:10 +0100 Subject: [PATCH] Don't import an nonexistent layout It should have a containment at least REVIEW: 127345 --- src/plasma/corona.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plasma/corona.cpp b/src/plasma/corona.cpp index 5d17550cc..178451693 100644 --- a/src/plasma/corona.cpp +++ b/src/plasma/corona.cpp @@ -176,7 +176,9 @@ void Corona::loadLayout(const QString &configName) } KConfigGroup conf(config(), QString()); - d->importLayout(conf, false); + if (!config()->groupList().isEmpty()) { + d->importLayout(conf, false); + } KConfigGroup cg(config(), "General"); setImmutability((Plasma::Types::ImmutabilityType)cg.readEntry("immutability", (int)Plasma::Types::Mutable));