diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 19:46:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-08 19:49:25 -0700 |
commit | 6f568fbecd018736cb7ea41d83e3d78b647185b3 (patch) | |
tree | 4114cdd8909bdb0e752b68cedfbf96170a7fd264 /qt-ui/mainwindow.h | |
parent | a70a0662f5a1278260ba03180ea947032d8f6885 (diff) | |
download | subsurface-6f568fbecd018736cb7ea41d83e3d78b647185b3.tar.gz |
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>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 46f685f1f..828c628d7 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -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(); |