1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

Fix torrent counts in tracker filter bar combo (GTK client) (#2144)

Total count was correct, but per-tracker counts were 1 more than in
reality.
This commit is contained in:
Mike Gelfand 2021-11-14 14:46:33 +03:00 committed by GitHub
parent 3d38e01a13
commit 1c800511d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ bool tracker_filter_model_update(Glib::RefPtr<Gtk::TreeStore> const& tracker_mod
if (auto const count = hosts_hash.find(key); count == hosts_hash.end())
{
hosts_hash.emplace(key, 1);
hosts_hash.emplace(key, 0);
hosts.push_back(key);
}