From 15ef681d839372dd694cdf7bff2e1999be5291a4 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 27 Nov 2008 18:31:59 +0000 Subject: [PATCH] copy the config over before setting our own containment, otherwise the screen gets set to -1 and then we copy it over. oh nos! svn path=/trunk/KDE/kdelibs/; revision=889812 --- view.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/view.cpp b/view.cpp index 8181c998a..d1b625577 100644 --- a/view.cpp +++ b/view.cpp @@ -268,14 +268,14 @@ Containment *View::swapContainment(Plasma::Containment *existing, const QString // ensure that the old containments configuration is up to date old->save(oldConfig); + // Copy configuration to new containment + oldConfig.copyTo(&newConfig); + if (old == d->containment) { // set our containment to the new one setContainment(c); } - // Copy configuration to new containment - oldConfig.copyTo(&newConfig); - // load the configuration of the old containment into the new one c->restore(newConfig); foreach (Applet *applet, c->applets()) {