mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a70a0662f5
commit
6f568fbecd
2 changed files with 25 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue