Commit 9e420810 authored by David Faure's avatar David Faure

Port from deprecated queryExit: save settings in closeEvent

parent 3c07f6ff
......@@ -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);
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment