Browse Source

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

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
7aa39e42c1
  1. 2
      src/transferlistwidget.cpp

2
src/transferlistwidget.cpp

@ -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…
Cancel
Save