summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-07 14:01:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-07 15:17:58 -0700
commitfb82da58a28cce131ede579897bd108c820b38a0 (patch)
treea9c42cff1c5f99e9619d6c24a3f72ee0e7984e3d /qt-ui/maintab.cpp
parent2bc76beb65bacd8640170d85e40bdc844a368570 (diff)
downloadsubsurface-fb82da58a28cce131ede579897bd108c820b38a0.tar.gz
Globe: assume that we are looking at the current_dive
As in commit 3870bdafee53 ("Globe: we always center on the current dive") passing in a specific dive here makes no sense - it's always about the current dive. Fixes #513 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 65eb86290..f85276d95 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -252,7 +252,7 @@ void MainTab::enableEdition(EditMode newEditMode)
}
MainWindow::instance()->dive_list()->setEnabled(false);
if (amount_selected == 1)
- MainWindow::instance()->globe()->prepareForGetDiveCoordinates(current_dive);
+ MainWindow::instance()->globe()->prepareForGetDiveCoordinates();
// We may be editing one or more dives here. backup everything.
notesBackup.clear();
if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {