Simplify the code that checks if it's OK to close the current file

And make sure it gets called whenever it needs to get called - it was
missing from the openRecentFile case.

Fixes #530

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-08 19:46:43 -07:00
parent a70a0662f5
commit 6f568fbecd
2 changed files with 25 additions and 11 deletions

View file

@ -169,6 +169,8 @@ private:
QString filter();
static MainWindow *m_Instance;
bool askSaveChanges();
bool okToClose(QString message);
void closeCurrentFile();
void writeSettings();
int file_save();
int file_save_as();