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
1 changed files with 1 additions and 1 deletions

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);
}