From 125193b9f10e2f1049f720d8fb4ef16d82d1b749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=C4=8Cuki=C4=87?= Date: Fri, 29 Oct 2010 08:25:57 +0000 Subject: [PATCH] prevent infinite recursion svn path=/trunk/KDE/kdelibs/; revision=1190859 --- containment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containment.cpp b/containment.cpp index 6082a6688..74c262f6a 100644 --- a/containment.cpp +++ b/containment.cpp @@ -1010,7 +1010,6 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn q->updateConstraints(Plasma::ScreenConstraint); if (oldScreen != newScreen || oldDesktop != newDesktop) { - emit q->screenChanged(oldScreen, newScreen, q); KConfigGroup c = q->config(); c.writeEntry("screen", screen); @@ -1022,6 +1021,7 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn c.writeEntry("lastDesktop", lastDesktop); } emit q->configNeedsSaving(); + emit q->screenChanged(oldScreen, newScreen, q); } if (swapScreensWith) {