From 96850b993194e77517e9df25d888b8f45e618f0c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 16 May 2015 21:41:21 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2