diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-14 07:29:57 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-10-14 09:40:07 (GMT) |
commit | 9a5fce0d7d66e0635678eb129f765b39ea11e600 (patch) | |
tree | c66a1a97767bd9ff7ab151b68c64e95a9321764b /src/gui/kernel/qwidget_lite.cpp | |
parent | ba321e277e392c276c1ff8b32f8fca7d26ed0fbe (diff) | |
download | Qt-9a5fce0d7d66e0635678eb129f765b39ea11e600.zip Qt-9a5fce0d7d66e0635678eb129f765b39ea11e600.tar.gz Qt-9a5fce0d7d66e0635678eb129f765b39ea11e600.tar.bz2 |
Fix some autotest failures and get rid of some compiler warnings
Diffstat (limited to 'src/gui/kernel/qwidget_lite.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_lite.cpp | 3 |
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) |