diff --git a/model/tablemodel.cpp b/model/tablemodel.cpp index 711eb29..3e18448 100644 --- a/model/tablemodel.cpp +++ b/model/tablemodel.cpp @@ -369,6 +369,10 @@ bool TableModel::isItemEqualToItemValues(const QModelIndex& itemIndex, if (valueOfItem.toString() != givenValue.toString()) { return false; } + } else if (TYPE_ROLES.contains(role)) { + if (valueOfItem.toString() != givenValue.toString()) { + return false; + } } else if (INT_ROLES.contains(role)) { if (valueOfItem.toInt() != givenValue.toInt()) { return false;