mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f98ace681a
commit
076f86202a
7 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue