summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-09-30 18:19:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-09-30 18:19:08 +0200
commit90d54a3aa48f8b1c050754f866ef0cf013f4f06b (patch)
tree5c489f5fed90b260d335e396a285b323a28bff22 /src/mainwindow.h
parentf4a6644a827fd8da95e62ecfbbbf683b3ce35bc2 (diff)
Ask user to save on new and quit if project is dirty.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index e4c5863..2c12950 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -73,6 +73,13 @@ protected:
void closeEvent(QCloseEvent*);
private:
+ //! Check dirty and prompt user to save
+ //! \returns true to continue closing the project, false to bail out.
+ bool checkDirty();
+
+ //! Reset project and reflect in mainwindow (close tabs and lists)
+ void reset();
+
void loadSettings();
void saveSettings();