summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-22 09:35:58 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-22 09:35:58 -0700
commitab24c1df87f3eec4494420b547e687b20897590f (patch)
treee78845289efae71c16ad6aac76c13239020895a1 /qt-ui
parent429fcdb3448ba070826ad36f0ff1f47563b6f58d (diff)
downloadsubsurface-ab24c1df87f3eec4494420b547e687b20897590f.tar.gz
When editing the location, make sure it gets applied to the dives
Oops, that was embarrassing. Just setting it on displayed_dive doesn't gain us anything if it isn't transferred to the selected dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 2deca04de..a75b80722 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -780,6 +780,8 @@ void MainTab::acceptChanges()
time_t offset = cd->when - displayed_dive.when;
MODIFY_SELECTED_DIVES(mydive->when -= offset;);
}
+ if (displayed_dive.dive_site_uuid != cd->dive_site_uuid)
+ MODIFY_SELECTED_DIVES(EDIT_VALUE(dive_site_uuid));
saveTags();