mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Return first tracker as fallback for "current tracker"
PR #22224. Closes #20415.
This commit is contained in:
parent
a018cfa56c
commit
86387fbe49
1 changed files with 7 additions and 1 deletions
|
@ -463,7 +463,13 @@ qlonglong TorrentImpl::wastedSize() const
|
||||||
|
|
||||||
QString TorrentImpl::currentTracker() const
|
QString TorrentImpl::currentTracker() const
|
||||||
{
|
{
|
||||||
|
if (!m_nativeStatus.current_tracker.empty())
|
||||||
return QString::fromStdString(m_nativeStatus.current_tracker);
|
return QString::fromStdString(m_nativeStatus.current_tracker);
|
||||||
|
|
||||||
|
if (!m_trackerEntryStatuses.isEmpty())
|
||||||
|
return m_trackerEntryStatuses.constFirst().url;
|
||||||
|
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
Path TorrentImpl::savePath() const
|
Path TorrentImpl::savePath() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue