correct connection
svn path=/trunk/KDE/kdelibs/; revision=1198591
This commit is contained in:
parent
c21986f62d
commit
3d1e047e41
@ -981,9 +981,9 @@ void ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventIn
|
|||||||
// we want to listen to changes in work area if our screen changes
|
// we want to listen to changes in work area if our screen changes
|
||||||
if (toolBox) {
|
if (toolBox) {
|
||||||
if (screen < 0 && newScreen > -1) {
|
if (screen < 0 && newScreen > -1) {
|
||||||
QObject::connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), toolBox.data(), SLOT(positionToolBox()), Qt::UniqueConnection);
|
QObject::connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), toolBox.data(), SLOT(reposition()), Qt::UniqueConnection);
|
||||||
} else if (newScreen < 0) {
|
} else if (newScreen < 0) {
|
||||||
QObject::disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), toolBox.data(), SLOT(positionToolBox()));
|
QObject::disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), toolBox.data(), SLOT(reposition()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user