mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-30 08:24:22 +00:00
Fix Add tracker dialog empty trackers
This commit is contained in:
parent
f22aee2bff
commit
b7ef066545
@ -53,7 +53,13 @@ TrackersAdditionDlg::TrackersAdditionDlg(BitTorrent::TorrentHandle *const torren
|
|||||||
|
|
||||||
QStringList TrackersAdditionDlg::newTrackers() const
|
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()
|
void TrackersAdditionDlg::on_uTorrentListButton_clicked()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user