mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 02:36:10 +03:00
Fix Add tracker dialog empty trackers
This commit is contained in:
parent
f22aee2bff
commit
b7ef066545
1 changed files with 7 additions and 1 deletions
|
@ -53,7 +53,13 @@ TrackersAdditionDlg::TrackersAdditionDlg(BitTorrent::TorrentHandle *const torren
|
|||
|
||||
QStringList TrackersAdditionDlg::newTrackers() const
|
||||
{
|
||||
return trackers_list->toPlainText().trimmed().split("\n");
|
||||
QStringList cleanTrackers;
|
||||
foreach (QString url, trackers_list->toPlainText().split("\n")) {
|
||||
url = url.trimmed();
|
||||
if (!url.isEmpty())
|
||||
cleanTrackers << url;
|
||||
}
|
||||
return cleanTrackers;
|
||||
}
|
||||
|
||||
void TrackersAdditionDlg::on_uTorrentListButton_clicked()
|
||||
|
|
Loading…
Reference in a new issue