mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Improve tracker entries handling
This commit is contained in:
parent
6b3c6c12ff
commit
7a8c05dc7c
17 changed files with 194 additions and 215 deletions
|
@ -66,8 +66,8 @@ void TrackerEntriesDialog::setTrackers(const QVector<BitTorrent::TrackerEntry> &
|
|||
|
||||
for (const BitTorrent::TrackerEntry &entry : trackers)
|
||||
{
|
||||
tiers[entry.tier()] += (entry.url() + '\n');
|
||||
maxTier = std::max(maxTier, entry.tier());
|
||||
tiers[entry.tier] += (entry.url + '\n');
|
||||
maxTier = std::max(maxTier, entry.tier);
|
||||
}
|
||||
|
||||
QString text = tiers.value(0);
|
||||
|
@ -97,9 +97,7 @@ QVector<BitTorrent::TrackerEntry> TrackerEntriesDialog::trackers() const
|
|||
continue;
|
||||
}
|
||||
|
||||
BitTorrent::TrackerEntry entry {line.toString()};
|
||||
entry.setTier(tier);
|
||||
entries.append(entry);
|
||||
entries.append({line.toString(), tier});
|
||||
}
|
||||
|
||||
return entries;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue