From db62c29391fde81440c5a93545ff7c7ccf2de37e Mon Sep 17 00:00:00 2001
From: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Date: Wed, 3 Jun 2015 23:35:12 -0300
Subject: [PATCH 10/25] Uneeded Calls

All those calls are uneeded:
The first will be called when QComboBox in the MainTab change
it's 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>
---
 qt-ui/mainwindow.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 3abb230..aef2249 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -270,7 +270,6 @@ void MainWindow::current_dive_changed(int divenr)
 {
 	if (divenr >= 0) {
 		select_dive(divenr);
-		globe()->centerOnCurrentDive();
 	}
 	graphics()->plotDive();
 	information()->updateDiveInfo();
@@ -404,7 +403,6 @@ void MainWindow::cleanUpEmpty()
 	information()->updateDiveInfo(true);
 	graphics()->setEmptyState();
 	dive_list()->reload(DiveTripModel::TREE);
-	locationInformationWidget()->setCurrentDiveSiteByUuid(0);
 	globe()->reload();
 	if (!existing_filename)
 		setTitle(MWTF_DEFAULT);
@@ -632,7 +630,6 @@ void MainWindow::setupForAddAndPlan(const char *model)
 	// setup the dive cylinders
 	DivePlannerPointsModel::instance()->clear();
 	DivePlannerPointsModel::instance()->setupCylinders();
-	locationInformationWidget()->setCurrentDiveSiteByUuid(0);
 }
 
 void MainWindow::on_actionReplanDive_triggered()
-- 
2.3.2 (Apple Git-55)

