From kde-commits Sun Apr 29 14:57:13 2007 From: Stefan Nikolaus Date: Sun, 29 Apr 2007 14:57:13 +0000 To: kde-commits Subject: koffice/libs/kofficecore Message-Id: <1177858633.188021.32101.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117785865000683 SVN commit 659136 by nikolaus: Don't close, if the user hits 'Cancel'. M +2 -0 KoMainWindow.cpp --- trunk/koffice/libs/kofficecore/KoMainWindow.cpp #659135:659136 @@ -1035,6 +1035,8 @@ setRootDocument(0L); KParts::MainWindow::closeEvent(e); } + else + e->setAccepted( false ); } void KoMainWindow::saveWindowSettings()