mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
Fix compilation with libtorrent 0.15.x.
This commit is contained in:
@@ -800,7 +800,12 @@ bool QBtSession::hasDownloadingTorrents() const {
|
|||||||
try {
|
try {
|
||||||
const torrent_status status = torrentIT->status();
|
const torrent_status status = torrentIT->status();
|
||||||
if (status.state != torrent_status::finished && status.state != torrent_status::seeding
|
if (status.state != torrent_status::finished && status.state != torrent_status::seeding
|
||||||
&& !(status.paused && !status.auto_managed))
|
&&
|
||||||
|
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||||
|
!(status.paused && !status.auto_managed))
|
||||||
|
#elif
|
||||||
|
!(torrentIT->is_paused() && !torrentIT->is_auto_managed()))
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
} catch(std::exception) {}
|
} catch(std::exception) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user