only used once, no point in putting in a temp var
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730443
This commit is contained in:
parent
e2f8093c2e
commit
4d1cac45c8
@ -406,8 +406,7 @@ void Containment::setScreen(int screen)
|
|||||||
|
|
||||||
//kDebug() << "setting screen to" << screen;
|
//kDebug() << "setting screen to" << screen;
|
||||||
QDesktopWidget desktop;
|
QDesktopWidget desktop;
|
||||||
int numScreens = desktop.numScreens();
|
if (screen < -1 || screen > desktop.numScreens() - 1) {
|
||||||
if (screen < -1 || screen > numScreens - 1) {
|
|
||||||
screen = -1;
|
screen = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user