aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-05-16 21:41:21 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-17 13:42:53 -0700
commit96850b993194e77517e9df25d888b8f45e618f0c (patch)
treef181b330ba96a58f4d5342ad4b7d3b6d57f0e0dc /qt-ui/maintab.cpp
parent2b99ae5781bc8c7ae596e6302f167a23f67ee2a0 (diff)
downloadsubsurface-96850b993194e77517e9df25d888b8f45e618f0c.tar.gz
Don't enable the widgets before finishing the thread
The maintab should be disabled when the geolocation thread is running - but if you changed the dive, it would reenabled it. (actually this should be only on the location widget, I'll send another path later) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 77f0fc476..739cbdf77 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -15,6 +15,7 @@
#include "display.h"
#include "profile/profilewidget2.h"
#include "diveplanner.h"
+#include "divesitehelpers.h"
#if defined(FBSUPPORT)
#include "socialnetworks.h"
@@ -406,7 +407,7 @@ void MainTab::updateDiveInfo(bool clear)
// don't execute this while adding / planning a dive
if (editMode == ADD || editMode == MANUALLY_ADDED_DIVE || MainWindow::instance()->graphics()->isPlanner())
return;
- if (!isEnabled() && !clear)
+ if (!isEnabled() && !clear && !ReverseGeoLoockupThread::instance()->isRunning())
setEnabled(true);
if (isEnabled() && clear)
setEnabled(false);