mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
FEATURE: uTorrent compatible tracker list support (use torrentz.com url as a default)
This commit is contained in:
parent
e885ee0d35
commit
d0037d90f4
4 changed files with 165 additions and 35 deletions
|
@ -221,10 +221,10 @@ public slots:
|
|||
|
||||
// Ask the user for new trackers and add them to the torrent
|
||||
void askForTrackers(){
|
||||
QStringList trackers = TrackersAdditionDlg::askForTrackers();
|
||||
QTorrentHandle h = properties->getCurrentTorrent();
|
||||
if(!h.is_valid()) return;
|
||||
QStringList trackers = TrackersAdditionDlg::askForTrackers(h);
|
||||
if(!trackers.empty()) {
|
||||
QTorrentHandle h = properties->getCurrentTorrent();
|
||||
if(!h.is_valid()) return;
|
||||
foreach(const QString& tracker, trackers) {
|
||||
announce_entry url(tracker.toStdString());
|
||||
url.tier = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue