summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
commit076f86202aab51529d99f73427a1a834a0ef5d34 (patch)
tree9c6a0041124450ea56d67b8e3c75b008b28d1eee /qt-ui/maintab.cpp
parentf98ace681acbc3aba64779d639fef4686c6f3474 (diff)
downloadsubsurface-076f86202aab51529d99f73427a1a834a0ef5d34.tar.gz
Change API signature to act on dive_site, not uuid
This way in the future we can pass in a pointer to a dive site that isn't linked in our dive site list yet (i.e., while we are editing). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 9b40d31fd..4920fab4b 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -759,7 +759,7 @@ void MainTab::updateDiveInfo(bool clear)
ui.cylinders->view()->hideColumn(CylindersModel::USE);
qDebug() << "Set the current dive site:" << displayed_dive.dive_site_uuid;
- emit diveSiteChanged(displayed_dive.dive_site_uuid);
+ emit diveSiteChanged(get_dive_site_by_uuid(displayed_dive.dive_site_uuid));
}
void MainTab::addCylinder_clicked()
@@ -1195,7 +1195,7 @@ void MainTab::rejectChanges()
// the user could have edited the location and then canceled the edit
// let's get the correct location back in view
#ifndef NO_MARBLE
- MainWindow::instance()->globe()->centerOnDiveSite(displayed_dive.dive_site_uuid);
+ MainWindow::instance()->globe()->centerOnDiveSite(get_dive_site_by_uuid(displayed_dive.dive_site_uuid));
MainWindow::instance()->globe()->reload();
#endif
// show the profile and dive info