diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 63e5d3a67..9200f28f5 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -960,7 +960,8 @@ void MainTab::on_tagWidget_textChanged() if (editMode == NONE) return; QString tag; - taglist_free(editedDive.tag_list); + if (editedDive.tag_list != current_dive->tag_list) + taglist_free(editedDive.tag_list); editedDive.tag_list = NULL; Q_FOREACH (tag, ui.tagWidget->getBlockStringList()) taglist_add_tag(&editedDive.tag_list, tag.toUtf8().data()); |