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/subsurfacewebservices.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/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index 0f062265b..5170b3a40 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -343,7 +343,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button) if (merge_locations_into_dives()) { mark_divelist_changed(true); MainWindow::instance()->globe()->repopulateLabels(); - MainWindow::instance()->globe()->centerOn(current_dive); + MainWindow::instance()->globe()->centerOnCurrentDive(); MainWindow::instance()->information()->updateDiveInfo(selected_dive); } |