mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:53:23 +00:00
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>
This commit is contained in:
parent
9e45999a01
commit
ad5819c42e
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue