Skip to content

Commit

Permalink
remove tag when variant is null or has null string
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Jun 29, 2019
1 parent ba4b986 commit a6d3c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/desktop/widgets/tag_editor/helpers/tags_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void TagsModel::syncData(const QModelIndex& topLeft, const QModelIndex& bottomRi
if (itemIndex.column() == 1)
{
const QVariant valueRaw = itemIndex.data();
const TagValue value = valueRaw.isNull()?
const TagValue value = valueRaw.isNull() || valueRaw == QString()?
TagValue():
TagValue::fromQVariant(valueRaw);

Expand Down

0 comments on commit a6d3c76

Please sign in to comment.