diff --git a/src/torrentcreator/torrentcreatorthread.cpp b/src/torrentcreator/torrentcreatorthread.cpp index 2179def46..84553b50d 100644 --- a/src/torrentcreator/torrentcreatorthread.cpp +++ b/src/torrentcreator/torrentcreatorthread.cpp @@ -114,12 +114,17 @@ void TorrentCreatorThread::run() { t.add_url_seed(seed.trimmed().toStdString()); } qint32 tier = 0; + bool newline = false; foreach (const QString &tracker, trackers) { if (tracker.isEmpty()) { + if (newline) + continue; ++tier; + newline = true; continue; } t.add_tracker(tracker.trimmed().toStdString(), tier); + newline = false; } if (abort) return; // calculate the hash for all pieces