summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 00aae5f29..88cfd8849 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -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);