diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-07 13:58:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-07 15:17:47 -0700 |
commit | 2bc76beb65bacd8640170d85e40bdc844a368570 (patch) | |
tree | b86d3115dbedb2ea59676d6e0bd40c658e16151a /qt-ui/globe.cpp | |
parent | a209dfbfd53f8ba4310a89ffde4cc02a6edb2d16 (diff) | |
download | subsurface-2bc76beb65bacd8640170d85e40bdc844a368570.tar.gz |
Globe: we always center on the current dive
Simplify the API (we'll take advantage of this in the next commit).
We always center the globe on the current dive, so no point in passing
that dive in.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 275d7ee85..f5b60ac23 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -207,8 +207,9 @@ void GlobeGPS::reload() repopulateLabels(); } -void GlobeGPS::centerOn(dive *dive) +void GlobeGPS::centerOnCurrentDive() { + struct dive *dive = current_dive; // dive has changed, if we had the 'editingDive', hide it. if (messageWidget->isVisible() && (!dive || dive_has_gps_location(dive) || amount_selected != 1 )) |