mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix compilation with libtorrent 0.15.x.
This commit is contained in:
parent
8fac3c793d
commit
cb838edb50
1 changed files with 6 additions and 1 deletions
|
@ -800,7 +800,12 @@ bool QBtSession::hasDownloadingTorrents() const {
|
|||
try {
|
||||
const torrent_status status = torrentIT->status();
|
||||
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;
|
||||
} catch(std::exception) {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue