mess with borders only if the dialog is visible fixes the panel

controller options dialog appearance

svn path=/trunk/KDE/kdelibs/; revision=966571
This commit is contained in:
Marco Martin 2009-05-11 12:08:29 +00:00
parent ec65d08748
commit 7b93ddbc4c

View File

@ -141,7 +141,7 @@ void DialogPrivate::themeUpdated()
default:
break;
}
} else {
} else if (q->isVisible()) {
QDesktopWidget *desktop = QApplication::desktop();
QRect avail = desktop->availableGeometry(desktop->screenNumber(q));
QRect dialogGeom = q->geometry();