diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-02-14 20:36:15 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-14 11:18:32 -0800 |
commit | cbff3f89c9c362732441ebf6dbd3b0117dfe7b61 (patch) | |
tree | 198b0fe7267b841b8cd1dfecc4a23840efe22896 /qt-ui/mainwindow.cpp | |
parent | 0f2d0211c3cfebf2513969113bd4f992194d10da (diff) | |
download | subsurface-cbff3f89c9c362732441ebf6dbd3b0117dfe7b61.tar.gz |
mainwindow.cpp: don't close a file if a dive site is being edited
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 56f885409..59e664db3 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -338,7 +338,8 @@ void MainWindow::cleanUpEmpty() bool MainWindow::okToClose(QString message) { if (DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING || - information()->isEditing()) { + information()->isEditing() || + currentApplicationState == "EditDiveSite") { QMessageBox::warning(this, tr("Warning"), message); return false; } |