From 898d453b417e561cea25f6b7578814d31cec6e97 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 07 Oct 2003 12:55:16 +0000 Subject: If you decide to close the mainwindow and have say editor and views open as well call closeAllWindows() after all events are dispatched --- diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index ad7899f..7f40645 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -409,7 +409,7 @@ void MainWindow::closeEvent( QCloseEvent* e ) { /* save templates */ templateManager()->save(); e->accept(); - qApp->quit(); + QTimer::singleShot(0, qApp, SLOT(closeAllWindows()) ); } } void MainWindow::populateTemplates() { -- cgit v0.9.0.2