summaryrefslogtreecommitdiffstats
path: root/examples/mainwindows/mdi/mainwindow.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-04 06:29:46 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-04 06:29:46 (GMT)
commit1400ce5b85fbe7c67899f5f62bfd276eecb21ae0 (patch)
treeccc72723d2305b4d24f9ec296e6d9ee7d3d9d16a /examples/mainwindows/mdi/mainwindow.cpp
parent867be3fd7a2017377e8ae5cc3ab789b3b01733bd (diff)
parentbe71186962db5974113e89b0e7c7aa1ab3987379 (diff)
downloadQt-1400ce5b85fbe7c67899f5f62bfd276eecb21ae0.zip
Qt-1400ce5b85fbe7c67899f5f62bfd276eecb21ae0.tar.gz
Qt-1400ce5b85fbe7c67899f5f62bfd276eecb21ae0.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'examples/mainwindows/mdi/mainwindow.cpp')
-rw-r--r--examples/mainwindows/mdi/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/mainwindows/mdi/mainwindow.cpp b/examples/mainwindows/mdi/mainwindow.cpp
index 712d91f..edb33b7 100644
--- a/examples/mainwindows/mdi/mainwindow.cpp
+++ b/examples/mainwindows/mdi/mainwindow.cpp
@@ -71,7 +71,7 @@ MainWindow::MainWindow()
void MainWindow::closeEvent(QCloseEvent *event)
{
mdiArea->closeAllSubWindows();
- if (activeMdiChild()) {
+ if (mdiArea->currentSubWindow()) {
event->ignore();
} else {
writeSettings();