diff --git a/cervisiashell.cpp b/cervisiashell.cpp index 89abe80658212493944a2d79eafe8a590b4e8f94..0923263b77c3aea7e0847996bde0cd445456a37a 100644 --- a/cervisiashell.cpp +++ b/cervisiashell.cpp @@ -163,10 +163,10 @@ void CervisiaShell::slotNewToolbarConfig() applyMainWindowSettings( KGlobal::config()->group( autoSaveGroup() ) ); } -bool CervisiaShell::queryExit() +void CervisiaShell::closeEvent(QCloseEvent *event) { writeSettings(); - return true; + KParts::MainWindow::closeEvent(event); } diff --git a/cervisiashell.h b/cervisiashell.h index 39c77f9342afaf55788660a927df4fb64062804d..f47c811bbe8146839961a297b2eb52cc22345a30 100644 --- a/cervisiashell.h +++ b/cervisiashell.h @@ -50,7 +50,7 @@ protected slots: protected: void setupActions(); - bool queryExit(); + void closeEvent(QCloseEvent *event); virtual void readProperties(const KConfigGroup& config); virtual void saveProperties(KConfigGroup& config);