prevent infinite recursion
svn path=/trunk/KDE/kdelibs/; revision=1190859
This commit is contained in:
parent
78f2883181
commit
125193b9f1
@ -1010,7 +1010,6 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn
|
|||||||
q->updateConstraints(Plasma::ScreenConstraint);
|
q->updateConstraints(Plasma::ScreenConstraint);
|
||||||
|
|
||||||
if (oldScreen != newScreen || oldDesktop != newDesktop) {
|
if (oldScreen != newScreen || oldDesktop != newDesktop) {
|
||||||
emit q->screenChanged(oldScreen, newScreen, q);
|
|
||||||
|
|
||||||
KConfigGroup c = q->config();
|
KConfigGroup c = q->config();
|
||||||
c.writeEntry("screen", screen);
|
c.writeEntry("screen", screen);
|
||||||
@ -1022,6 +1021,7 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn
|
|||||||
c.writeEntry("lastDesktop", lastDesktop);
|
c.writeEntry("lastDesktop", lastDesktop);
|
||||||
}
|
}
|
||||||
emit q->configNeedsSaving();
|
emit q->configNeedsSaving();
|
||||||
|
emit q->screenChanged(oldScreen, newScreen, q);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (swapScreensWith) {
|
if (swapScreensWith) {
|
||||||
|
Loading…
Reference in New Issue
Block a user