Add "Tracker entries" dialog

This commit is contained in:
Chocobo1 2019-06-24 23:37:31 +08:00
parent 91742d4a53
commit 9e7f50517e
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
9 changed files with 277 additions and 1 deletions

View file

@ -154,5 +154,11 @@ const lt::announce_entry &TrackerEntry::nativeEntry() const
bool BitTorrent::operator==(const TrackerEntry &left, const TrackerEntry &right)
{
return (QUrl(left.url()) == QUrl(right.url()));
return ((left.tier() == right.tier())
&& QUrl(left.url()) == QUrl(right.url()));
}
uint BitTorrent::qHash(const TrackerEntry &key, const uint seed)
{
return (::qHash(key.url(), seed) ^ key.tier());
}