(cherry picked from commit
ad23439b7e112aa8a36f34e7b16224dcab742147)
Change-Id: I8bbe3a1a4463e14a93d1c09ab0ad82a3cd36c1b7
Reviewed-on: http://codereview.qt-project.org/4607
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
void MainWindow::closeEvent(QCloseEvent *e)
{
- if (maybeSaveAll() && closePhraseBooks())
+ if (maybeSaveAll() && maybeSavePhraseBooks())
e->accept();
else
e->ignore();
return true;
}
-bool MainWindow::closePhraseBooks()
+bool MainWindow::maybeSavePhraseBooks()
{
foreach(PhraseBook *phraseBook, m_phraseBooks)
if (!maybeSavePhraseBook(phraseBook))
bool isPhraseBookOpen(const QString &name);
bool savePhraseBook(QString *name, PhraseBook &pb);
bool maybeSavePhraseBook(PhraseBook *phraseBook);
- bool closePhraseBooks();
+ bool maybeSavePhraseBooks();
QStringList pickTranslationFiles();
void showTranslationSettings(int model);
void updateLatestModel(int model);