mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Correctly escape transfer list filter value typed by user
This commit is contained in:
parent
7aa39e42c1
commit
06c8e658aa
2 changed files with 3 additions and 3 deletions
|
@ -859,8 +859,8 @@ void TransferListWidget::applyLabelFilter(QString label) {
|
||||||
labelFilterModel->setFilterRegExp(QRegExp("^" + QRegExp::escape(label) + "$", Qt::CaseSensitive));
|
labelFilterModel->setFilterRegExp(QRegExp("^" + QRegExp::escape(label) + "$", Qt::CaseSensitive));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::applyNameFilter(QString name) {
|
void TransferListWidget::applyNameFilter(const QString& name) {
|
||||||
nameFilterModel->setFilterRegExp(QRegExp(name, Qt::CaseInsensitive));
|
nameFilterModel->setFilterRegExp(QRegExp(QRegExp::escape(name), Qt::CaseInsensitive));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransferListWidget::applyStatusFilter(int f) {
|
void TransferListWidget::applyStatusFilter(int f) {
|
||||||
|
|
|
@ -78,7 +78,7 @@ public slots:
|
||||||
void previewSelectedTorrents();
|
void previewSelectedTorrents();
|
||||||
void hidePriorityColumn(bool hide);
|
void hidePriorityColumn(bool hide);
|
||||||
void displayDLHoSMenu(const QPoint&);
|
void displayDLHoSMenu(const QPoint&);
|
||||||
void applyNameFilter(QString name);
|
void applyNameFilter(const QString& name);
|
||||||
void applyStatusFilter(int f);
|
void applyStatusFilter(int f);
|
||||||
void applyLabelFilter(QString label);
|
void applyLabelFilter(QString label);
|
||||||
void previewFile(QString filePath);
|
void previewFile(QString filePath);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue