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/mainwindow.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/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 861b6868c..b03fbe14c 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -147,7 +147,7 @@ void MainWindow::current_dive_changed(int divenr) { if (divenr >= 0) { select_dive(divenr); - ui.globe->centerOn(get_dive(selected_dive)); + ui.globe->centerOnCurrentDive(); } /* It looks like it's a bit too cumberstone to send *one* dive using a QList, |