aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 15:46:49 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-15 15:46:49 +0700
commit9e70f556c5279d274eed64fb538551acf2775a39 (patch)
treeefddda59fe18a069ff9aa34a346a9ea89d9cc2d9 /qt-ui/subsurfacewebservices.cpp
parent78cdded90273fe6fd00cdd856fae3e54186c725b (diff)
downloadsubsurface-9e70f556c5279d274eed64fb538551acf2775a39.tar.gz
After downloading GPS data show the new information
Recreate the labels in the marble window (this adds all the new locations with the correct labels), center on the selected dive (this makes sense in case this is one of the dives that got location information) and redisplay the main tab (again, as this might now have location information). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index fb437d11f..df4b10a11 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -336,6 +336,9 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton* button)
/* now merge the data in the gps_location table into the dive_table */
if (merge_locations_into_dives()) {
mark_divelist_changed(TRUE);
+ mainWindow()->globe()->repopulateLabels();
+ mainWindow()->globe()->centerOn(current_dive);
+ mainWindow()->information()->updateDiveInfo(selected_dive);
}
/* store last entered uid in config */