prevent infinite recursion

svn path=/trunk/KDE/kdelibs/; revision=1190859
This commit is contained in:
Ivan Čukić 2010-10-29 08:25:57 +00:00
parent 78f2883181
commit 125193b9f1

View File

@ -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) {