|
|
@ -66,11 +66,8 @@ namespace |
|
|
|
|
|
|
|
|
|
|
|
QString getScheme(const QString &tracker) |
|
|
|
QString getScheme(const QString &tracker) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const QUrl url {tracker}; |
|
|
|
const QString scheme = QUrl(tracker).scheme(); |
|
|
|
QString scheme = url.scheme(); |
|
|
|
return !scheme.isEmpty() ? scheme : u"http"_qs; |
|
|
|
if (scheme.isEmpty()) |
|
|
|
|
|
|
|
scheme = u"http"_qs; |
|
|
|
|
|
|
|
return scheme; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString getHost(const QString &tracker) |
|
|
|
QString getHost(const QString &tracker) |
|
|
@ -360,7 +357,6 @@ void StatusFilterWidget::torrentAboutToBeDeleted(BitTorrent::Torrent *const torr |
|
|
|
|
|
|
|
|
|
|
|
TrackerFiltersList::TrackerFiltersList(QWidget *parent, TransferListWidget *transferList, const bool downloadFavicon) |
|
|
|
TrackerFiltersList::TrackerFiltersList(QWidget *parent, TransferListWidget *transferList, const bool downloadFavicon) |
|
|
|
: BaseFilterWidget(parent, transferList) |
|
|
|
: BaseFilterWidget(parent, transferList) |
|
|
|
, m_totalTorrents(0) |
|
|
|
|
|
|
|
, m_downloadTrackerFavicon(downloadFavicon) |
|
|
|
, m_downloadTrackerFavicon(downloadFavicon) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto *allTrackers = new QListWidgetItem(this); |
|
|
|
auto *allTrackers = new QListWidgetItem(this); |
|
|
|