mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 13:11:25 -07:00
Fix label-based filtering of torrents whose label contains special characters
This commit is contained in:
parent
edcfa4df12
commit
83bcd6a2d7
1 changed files with 1 additions and 1 deletions
|
@ -856,7 +856,7 @@ void TransferListWidget::applyLabelFilter(QString label) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qDebug("Applying Label filter: %s", qPrintable(label));
|
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) {
|
void TransferListWidget::applyNameFilter(QString name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue