From c746f913702a99e0a7af4186b99cf9ae1e30649f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 29 Nov 2007 00:19:03 +0000 Subject: [PATCH] check for missing screens after creating existing ones svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=742837 --- corona.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/corona.cpp b/corona.cpp index 91c572c16..0ad675d98 100644 --- a/corona.cpp +++ b/corona.cpp @@ -199,17 +199,6 @@ void Corona::loadApplets(const QString& configName) if (d->containments.count() < 1) { loadDefaultSetup(); } else { - // quick sanity check to ensure we have containments for each screen! - int numScreens = QApplication::desktop()->numScreens(); - for (int i = 0; i < numScreens; ++i) { - if (!containmentForScreen(i)) { - //TODO: should we look for containments that aren't asigned but already exist? - Containment* c = addContainment("desktop"); - c->setScreen(i); - c->setFormFactor(Plasma::Planar); - } - } - foreach (Containment* containment, d->containments) { QString cid = QString::number(containment->id()); containment->init(); @@ -222,6 +211,17 @@ void Corona::loadApplets(const QString& configName) containment->flushUpdatedConstraints(); } + + // quick sanity check to ensure we have containments for each screen! + int numScreens = QApplication::desktop()->numScreens(); + for (int i = 0; i < numScreens; ++i) { + if (!containmentForScreen(i)) { + //TODO: should we look for containments that aren't asigned but already exist? + Containment* c = addContainment("desktop"); + c->setScreen(i); + c->setFormFactor(Plasma::Planar); + } + } } setImmutable(config.isImmutable());