summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_lite.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-14 07:29:57 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-14 09:40:07 (GMT)
commit9a5fce0d7d66e0635678eb129f765b39ea11e600 (patch)
treec66a1a97767bd9ff7ab151b68c64e95a9321764b /src/gui/kernel/qwidget_lite.cpp
parentba321e277e392c276c1ff8b32f8fca7d26ed0fbe (diff)
downloadQt-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.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)