1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

Fix label-based filtering of torrents whose label contains special characters

This commit is contained in:
Christophe Dumez 2012-08-28 18:27:33 +03:00
parent ca2a659970
commit 7aa39e42c1

View File

@ -856,7 +856,7 @@ void TransferListWidget::applyLabelFilter(QString label) {
return;
}
qDebug("Applying Label filter: %s", qPrintable(label));
labelFilterModel->setFilterRegExp(QRegExp("^"+label+"$", Qt::CaseSensitive));
labelFilterModel->setFilterRegExp(QRegExp("^" + QRegExp::escape(label) + "$", Qt::CaseSensitive));
}
void TransferListWidget::applyNameFilter(QString name) {