mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't start Add or Plan while accessing cloud storage
This avoids a race condition where we get confused about our internal state. Fixes #1031 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
48007ebc30
commit
abb3b03511
1 changed files with 4 additions and 0 deletions
|
@ -780,6 +780,10 @@ void MainWindow::on_actionEditDeviceNames_triggered()
|
|||
|
||||
bool MainWindow::plannerStateClean()
|
||||
{
|
||||
if (progressDialog)
|
||||
// we are accessing the cloud, so let's not switch into Add or Plan mode
|
||||
return false;
|
||||
|
||||
if (DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING ||
|
||||
information()->isEditing()) {
|
||||
QMessageBox::warning(this, tr("Warning"), tr("Please save or cancel the current dive edit before trying to add a dive."));
|
||||
|
|
Loading…
Add table
Reference in a new issue