mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only update tags in the selected dives if they were changed
If current_dive and displayed_dive still have the same tags then we shouldn't touch the tags of other selected dives. Fixes #826 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d60a620193
commit
585d6a004b
3 changed files with 22 additions and 0 deletions
|
@ -1099,6 +1099,9 @@ void MainTab::saveTags()
|
|||
Q_FOREACH (const QString& tag, ui.tagWidget->getBlockStringList())
|
||||
taglist_add_tag(&displayed_dive.tag_list, tag.toUtf8().data());
|
||||
taglist_cleanup(&displayed_dive.tag_list);
|
||||
// we need to check if the tags were changed before just overwriting them
|
||||
if (taglist_equal(displayed_dive.tag_list, cd->tag_list))
|
||||
return;
|
||||
MODIFY_SELECTED_DIVES(
|
||||
QString tag;
|
||||
taglist_free(mydive->tag_list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue