mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
f367414297
commit
4c978eab2e
1 changed files with 0 additions and 3 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue