aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/mdiwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/mdiwindow.h')
-rw-r--r--SQLiteStudio3/guiSQLiteStudio/mdiwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/mdiwindow.h b/SQLiteStudio3/guiSQLiteStudio/mdiwindow.h
index fd6c4dc..7003425 100644
--- a/SQLiteStudio3/guiSQLiteStudio/mdiwindow.h
+++ b/SQLiteStudio3/guiSQLiteStudio/mdiwindow.h
@@ -28,12 +28,16 @@ class GUI_API_EXPORT MdiWindow : public QMdiSubWindow
void changeEvent(QEvent *event);
void closeEvent(QCloseEvent* e);
+ bool getCloseWithoutSessionSaving() const;
+ void setCloseWithoutSessionSaving(bool value);
+
private:
bool confirmClose();
QPointer<QWidget> lastFocusedWidget;
MdiArea* mdiArea = nullptr;
bool dbBeingClosed = false;
+ bool closeWithoutSessionSaving = false;
private slots:
void dbAboutToBeDisconnected(Db* db, bool& deny);