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>
This commit is contained in:
Dirk Hohndel 2014-05-07 13:58:07 -07:00
parent a209dfbfd5
commit 2bc76beb65
5 changed files with 6 additions and 5 deletions

View file

@ -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,