mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01: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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user