Commit b723476b authored by David Faure's avatar David Faure

Port from queryExit to closeEvent, since there's always only one mainwindow.

Reviewed by Laurent Montel
parent 03c2a2d4
......@@ -187,7 +187,7 @@ void MainWindow::slotCloseTabClicked()
}
}
bool MainWindow::queryExit()
void MainWindow::closeEvent(QCloseEvent *event)
{
writeConfigs();
if ( !DBMan::self()->clearTempEntries() )
......@@ -200,7 +200,7 @@ bool MainWindow::queryExit()
DBMan::self()->saveTempEntry(*pst->currentPost(), pst->currentPostBlogId());
}
}
return true;
event->accept();
}
void MainWindow::setupActions()
......
......@@ -112,7 +112,7 @@ private slots:
protected:
void keyPressEvent( QKeyEvent * event );
virtual bool queryExit();
void closeEvent( QCloseEvent *event );
private:
void setCurrentBlog( int blog_id );
......
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