FEATURE: uTorrent compatible tracker list support (use torrentz.com url as a default)

This commit is contained in:
Christophe Dumez 2009-12-29 16:36:36 +00:00
commit d0037d90f4
4 changed files with 165 additions and 35 deletions

View file

@ -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;