Dive site rewrite: copy the current dive to the displayed dive

This way we can actually edit something.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-06-26 14:40:12 -03:00 committed by Dirk Hohndel
parent 09f2d3b35d
commit 2fec1a88de
3 changed files with 15 additions and 0 deletions

View file

@ -703,6 +703,7 @@ void MainTab::updateDiveInfo(bool clear)
ui.locationTags->hide();
else
ui.locationTags->show();
copy_dive_site(get_dive_site_by_uuid(displayed_dive.dive_site_uuid), &displayed_dive_site);
} else {
/* clear the fields */