From 90d54a3aa48f8b1c050754f866ef0cf013f4f06b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 30 Sep 2018 18:19:08 +0200 Subject: Ask user to save on new and quit if project is dirty. --- src/mainwindow.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainwindow.h') 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(); -- cgit v1.2.3