mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Fix label-based filtering of torrents whose label contains special characters
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user