diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index fc6f70f77..af1afc498 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -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