summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-06 12:46:58 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-06 12:47:04 -0700
commitad5819c42e68e8e2ba7c39a7b7fd7e3d048bf87c (patch)
tree28073756e67c7ddd9bf812feb802a2b78140a6bf /desktop-widgets
parent9e45999a01471678001af1b2c292776cf30253ce (diff)
downloadsubsurface-ad5819c42e68e8e2ba7c39a7b7fd7e3d048bf87c.tar.gz
Save tags when manually adding dive
Tags are handled differently from other fields, we need to call the special handling after the new dive was added and marked as the current dive. Fixes: #369 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 31b269b9b..14b5f2b7f 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -777,6 +777,8 @@ void MainTab::acceptChanges()
MainWindow::instance()->dive_list()->unselectDives();
selected_dive = get_divenr(added_dive);
amount_selected = 1;
+ // finally, make sure we get the tags
+ saveTags();
} else if (MainWindow::instance() && MainWindow::instance()->dive_list()->selectedTrips().count() == 1) {
/* now figure out if things have changed */
if (displayedTrip.notes && !same_string(displayedTrip.notes, currentTrip->notes)) {