mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Merge pull request #3447 from glassez/filters
Fix label filter. Closes #3429.
This commit is contained in:
commit
256793aad7
4 changed files with 14 additions and 21 deletions
|
@ -832,15 +832,12 @@ void TransferListWidget::currentChanged(const QModelIndex& current, const QModel
|
|||
emit currentTorrentChanged(torrent);
|
||||
}
|
||||
|
||||
void TransferListWidget::applyLabelFilterAll()
|
||||
{
|
||||
nameFilterModel->disableLabelFilter();
|
||||
}
|
||||
|
||||
void TransferListWidget::applyLabelFilter(QString label)
|
||||
{
|
||||
qDebug("Applying Label filter: %s", qPrintable(label));
|
||||
nameFilterModel->setLabelFilter(label);
|
||||
if (label.isNull())
|
||||
nameFilterModel->disableLabelFilter();
|
||||
else
|
||||
nameFilterModel->setLabelFilter(label);
|
||||
}
|
||||
|
||||
void TransferListWidget::applyTrackerFilterAll()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue