mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Return first tracker as fallback for "current tracker"
PR #22224. Closes #20415.
This commit is contained in:
committed by
GitHub
parent
a018cfa56c
commit
86387fbe49
@@ -463,7 +463,13 @@ qlonglong TorrentImpl::wastedSize() const
|
||||
|
||||
QString TorrentImpl::currentTracker() const
|
||||
{
|
||||
return QString::fromStdString(m_nativeStatus.current_tracker);
|
||||
if (!m_nativeStatus.current_tracker.empty())
|
||||
return QString::fromStdString(m_nativeStatus.current_tracker);
|
||||
|
||||
if (!m_trackerEntryStatuses.isEmpty())
|
||||
return m_trackerEntryStatuses.constFirst().url;
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Path TorrentImpl::savePath() const
|
||||
|
||||
Reference in New Issue
Block a user