parentHasFocus false if Qt::WindowDoesNotAcceptFocus

BUG:334819
This commit is contained in:
Marco Martin 2014-05-15 17:42:17 +02:00
parent 5e057da091
commit 09453cfe89

View File

@ -782,7 +782,8 @@ void Dialog::focusOutEvent(QFocusEvent *ev)
QWindow *parentWindow = transientParent();
while (parentWindow) {
if (parentWindow->isActive()) {
if (parentWindow->isActive() &&
!(parentWindow->flags() & Qt::WindowDoesNotAcceptFocus)) {
parentHasFocus = true;
break;