Fix Trackerless row is removed when it becomes zero

PR #23571.
This commit is contained in:
Vladimir Golovnev 2025-12-06 11:01:50 +03:00 committed by GitHub
parent c45dfb6662
commit d918c43aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -300,7 +300,7 @@ void TrackersFilterWidget::decreaseTorrentsCount(const QString &trackerHost)
--trackerData.torrentsCount;
if (trackerData.torrentsCount == 0)
if ((trackerData.torrentsCount == 0) && (trackerHost != NULL_HOST))
{
if (currentItem() == trackerData.item)
setCurrentRow(0, QItemSelectionModel::SelectCurrent);