diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-16 21:41:21 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-17 13:42:53 -0700 |
commit | 96850b993194e77517e9df25d888b8f45e618f0c (patch) | |
tree | f181b330ba96a58f4d5342ad4b7d3b6d57f0e0dc /qt-ui/maintab.cpp | |
parent | 2b99ae5781bc8c7ae596e6302f167a23f67ee2a0 (diff) | |
download | subsurface-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.cpp | 3 |
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); |