summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-22 12:15:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-22 12:29:39 -0700
commitd4b5854f82522b1920bbfbe9e094bfa4f0bb516f (patch)
tree7735a4b9cf0821a33aad4d0c236e44b015a1e820 /qt-ui/globe.cpp
parentb342730ec958a6127cfef4e5459cfea96477ac42 (diff)
downloadsubsurface-d4b5854f82522b1920bbfbe9e094bfa4f0bb516f.tar.gz
Location management: reflect changes to the coordinates on the map
This is a bit aggressive as it changes the globe with every single character that's entered, but it's better than what we had before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index ea0c0f231..5c4bbde6a 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -231,6 +231,7 @@ void GlobeGPS::repopulateLabels()
}
}
model()->treeModel()->addDocument(loadedDives);
+ centerOn(displayed_dive_site.longitude.udeg / 1000000.0, displayed_dive_site.latitude.udeg / 1000000.0, true);
}
void GlobeGPS::reload()