summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-06-01 16:58:23 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-01 13:24:37 -0700
commitb8092c07a4b4d7715d825641e458be5fa56972d6 (patch)
tree81d7604b2f53fe234d83a09a3645616a681e9ba1 /qt-ui/mainwindow.cpp
parent82d3f088a40545624f0d1ac61ca990e05325081c (diff)
downloadsubsurface-b8092c07a4b4d7715d825641e458be5fa56972d6.tar.gz
Create a new DiveSite when user clicks on add
Also reorganized a bit of the code, and renamed a few misleading methods. [Dirk Hohndel: remove some C++11 code] Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 9fa1a81d1..3abb230c4 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -216,7 +216,7 @@ void MainWindow::on_actionManage_dive_sites_triggered() {
}
void MainWindow::enableDiveSiteEdit(uint32_t id) {
- locationInformationWidget()->setLocationId(displayed_dive.dive_site_uuid);
+ locationInformationWidget()->setCurrentDiveSiteByUuid(id);
setApplicationState("EditDiveSite");
}
@@ -404,7 +404,7 @@ void MainWindow::cleanUpEmpty()
information()->updateDiveInfo(true);
graphics()->setEmptyState();
dive_list()->reload(DiveTripModel::TREE);
- locationInformationWidget()->setLocationId(0);
+ locationInformationWidget()->setCurrentDiveSiteByUuid(0);
globe()->reload();
if (!existing_filename)
setTitle(MWTF_DEFAULT);
@@ -632,7 +632,7 @@ void MainWindow::setupForAddAndPlan(const char *model)
// setup the dive cylinders
DivePlannerPointsModel::instance()->clear();
DivePlannerPointsModel::instance()->setupCylinders();
- locationInformationWidget()->setLocationId(0);
+ locationInformationWidget()->setCurrentDiveSiteByUuid(0);
}
void MainWindow::on_actionReplanDive_triggered()