summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_lite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwidget_lite.cpp')
-rw-r--r--src/gui/kernel/qwidget_lite.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_lite.cpp b/src/gui/kernel/qwidget_lite.cpp
index 1c48e10..cab8cda 100644
--- a/src/gui/kernel/qwidget_lite.cpp
+++ b/src/gui/kernel/qwidget_lite.cpp
@@ -78,6 +78,9 @@ void QWidget::destroy(bool destroyWindow, bool destroySubWindows)
if ((windowType() == Qt::Popup))
qApp->d_func()->closePopup(this);
+ //### we don't have proper focus event handling yet
+ if (this == QApplicationPrivate::active_window)
+ QApplication::setActiveWindow(0);
}
void QWidgetPrivate::setParent_sys(QWidget *newparent, Qt::WindowFlags f)