mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0f2d0211c3
commit
cbff3f89c9
1 changed files with 2 additions and 1 deletions
|
@ -338,7 +338,8 @@ void MainWindow::cleanUpEmpty()
|
||||||
bool MainWindow::okToClose(QString message)
|
bool MainWindow::okToClose(QString message)
|
||||||
{
|
{
|
||||||
if (DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
|
if (DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
|
||||||
information()->isEditing()) {
|
information()->isEditing() ||
|
||||||
|
currentApplicationState == "EditDiveSite") {
|
||||||
QMessageBox::warning(this, tr("Warning"), message);
|
QMessageBox::warning(this, tr("Warning"), message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue