summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-07 13:58:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-07 15:17:47 -0700
commit2bc76beb65bacd8640170d85e40bdc844a368570 (patch)
treeb86d3115dbedb2ea59676d6e0bd40c658e16151a /qt-ui/maintab.cpp
parenta209dfbfd53f8ba4310a89ffde4cc02a6edb2d16 (diff)
downloadsubsurface-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/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index e02fa1988..65eb86290 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -891,7 +891,7 @@ void MainTab::rejectChanges()
MainWindow::instance()->dive_list()->setFocus();
// the user could have edited the location and then canceled the edit
// let's get the correct location back in view
- MainWindow::instance()->globe()->centerOn(current_dive);
+ MainWindow::instance()->globe()->centerOnCurrentDive();
}
#undef EDIT_TEXT2