Commit 2ce5ccdb authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix effect/composition list filter working on untranslated strings

Fixes #339
parent cdd04a7b
Pipeline #7067 passed with stage
in 21 minutes and 20 seconds
......@@ -62,7 +62,7 @@ bool AssetFilter::filterName(const std::shared_ptr<TreeItem> &item) const
if (!m_name_enabled) {
return true;
QString itemText = item->dataColumn(AssetTreeModel::nameCol).toString();
QString itemText = i18n(item->dataColumn(AssetTreeModel::nameCol).toString().toUtf8().constData());
itemText = itemText.normalized(QString::NormalizationForm_D).remove(QRegExp(QStringLiteral("[^a-zA-Z0-9\\s]")));
QString patt = m_name_value.normalized(QString::NormalizationForm_D).remove(QRegExp(QStringLiteral("[^a-zA-Z0-9\\s]")));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment