mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create a new dive site and edit it automatically
If the user clicks on the first or second option of the drop down list, subsurface will move him to the dive site edit panel automatically, since it's a new dive site and there's no information about it yet. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0ba832ef12
commit
fc6d819616
4 changed files with 18 additions and 8 deletions
|
@ -868,7 +868,7 @@ void MainTab::updateDisplayedDiveSite()
|
|||
if(orig_uuid) {
|
||||
if (new_uuid && orig_uuid != new_uuid) {
|
||||
// the user picked a different site
|
||||
qDebug() << "copy the dive site we picked into the displayed dive site";
|
||||
qDebug() << "copy the dive site we picked into the displayed dive site, id: " << new_uuid;
|
||||
displayed_dive.dive_site_uuid = new_uuid;
|
||||
copy_dive_site(get_dive_site_by_uuid(displayed_dive.dive_site_uuid), &displayed_dive_site);
|
||||
} else if (!new_name.isEmpty() && orig_name != new_name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue