From 9e70f556c5279d274eed64fb538551acf2775a39 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 15 Jan 2014 15:46:49 +0700 Subject: 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 --- qt-ui/subsurfacewebservices.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/subsurfacewebservices.cpp') 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 */ -- cgit v1.2.3-70-g09d2