diff options
Diffstat (limited to 'qt-models/divetripmodel.cpp')
-rw-r--r-- | qt-models/divetripmodel.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 082d3212e..7df52c94a 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -422,12 +422,7 @@ QString DiveItem::displayWeightWithUnit() const QString DiveItem::displayTags() const { struct dive *dive = get_dive_by_uniq_id(diveId); - if (!dive->tag_list) - return QString(); - - char buf[1024]; - taglist_get_tagstring(dive->tag_list, buf, 1024); - return QString(buf); + return get_taglist_string(dive->tag_list); } int DiveItem::weight() const |