mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +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:
parent
3d38e01a13
commit
1c800511d7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue