Remove unnecessary calls

All those calls are unnecessary:
The first will be called when the QComboBox in the MainTab changes
its index, and the other two calls shouldn't be called: the only thing
that should change a dive site inside the LocationManagement is the
LocationManagement.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-06-03 23:35:12 -03:00 committed by Dirk Hohndel
parent f367414297
commit 4c978eab2e

View file

@ -270,7 +270,6 @@ void MainWindow::current_dive_changed(int divenr)
{ {
if (divenr >= 0) { if (divenr >= 0) {
select_dive(divenr); select_dive(divenr);
globe()->centerOnCurrentDive();
} }
graphics()->plotDive(); graphics()->plotDive();
information()->updateDiveInfo(); information()->updateDiveInfo();
@ -404,7 +403,6 @@ void MainWindow::cleanUpEmpty()
information()->updateDiveInfo(true); information()->updateDiveInfo(true);
graphics()->setEmptyState(); graphics()->setEmptyState();
dive_list()->reload(DiveTripModel::TREE); dive_list()->reload(DiveTripModel::TREE);
locationInformationWidget()->setCurrentDiveSiteByUuid(0);
globe()->reload(); globe()->reload();
if (!existing_filename) if (!existing_filename)
setTitle(MWTF_DEFAULT); setTitle(MWTF_DEFAULT);
@ -632,7 +630,6 @@ void MainWindow::setupForAddAndPlan(const char *model)
// setup the dive cylinders // setup the dive cylinders
DivePlannerPointsModel::instance()->clear(); DivePlannerPointsModel::instance()->clear();
DivePlannerPointsModel::instance()->setupCylinders(); DivePlannerPointsModel::instance()->setupCylinders();
locationInformationWidget()->setCurrentDiveSiteByUuid(0);
} }
void MainWindow::on_actionReplanDive_triggered() void MainWindow::on_actionReplanDive_triggered()