Don't import an nonexistent layout

It should have a containment at least

REVIEW: 127345
This commit is contained in:
Aleix Pol 2016-03-16 12:33:10 +01:00
parent c23f2415bb
commit 309c64f5e9

View File

@ -176,7 +176,9 @@ void Corona::loadLayout(const QString &configName)
}
KConfigGroup conf(config(), QString());
if (!config()->groupList().isEmpty()) {
d->importLayout(conf, false);
}
KConfigGroup cg(config(), "General");
setImmutability((Plasma::Types::ImmutabilityType)cg.readEntry("immutability", (int)Plasma::Types::Mutable));