diff --git a/src/gui/torrentcontentmodel.cpp b/src/gui/torrentcontentmodel.cpp index d1bf952fc..36fe9b281 100644 --- a/src/gui/torrentcontentmodel.cpp +++ b/src/gui/torrentcontentmodel.cpp @@ -311,7 +311,16 @@ bool TorrentContentModel::setData(const QModelIndex &index, const QVariant &valu item->setName(value.toString()); break; case TorrentContentModelItem::COL_PRIO: - item->setPriority(static_cast(value.toInt())); + { + const BitTorrent::DownloadPriority previousPrio = item->priority(); + const auto newPrio = static_cast(value.toInt()); + item->setPriority(newPrio); + if ((newPrio != previousPrio) && ((newPrio == BitTorrent::DownloadPriority::Ignored) + || (previousPrio == BitTorrent::DownloadPriority::Ignored))) + { + emit filteredFilesChanged(); + } + } break; default: return false;