diff options
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp b/SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp index dafd108..0e8d298 100644 --- a/SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/mdiwindow.cpp @@ -28,7 +28,7 @@ MdiWindow::~MdiWindow() if (SQLITESTUDIO->getImmediateQuit()) return; - if (!MAINWINDOW->isClosingApp()) + if (!closeWithoutSessionSaving && !MAINWINDOW->isClosingApp()) MAINWINDOW->pushClosedWindowSessionValue(saveSession()); mdiArea->windowDestroyed(this); @@ -199,3 +199,13 @@ bool MdiWindow::confirmClose() return (msgBox.exec() == QMessageBox::Yes); } +bool MdiWindow::getCloseWithoutSessionSaving() const +{ + return closeWithoutSessionSaving; +} + +void MdiWindow::setCloseWithoutSessionSaving(bool value) +{ + closeWithoutSessionSaving = value; +} + |
