From ad5819c42e68e8e2ba7c39a7b7fd7e3d048bf87c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 6 May 2017 12:46:58 -0700 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- cgit v1.2.3-70-g09d2