|
|
@ -730,8 +730,9 @@ bool QBtSession::hasDownloadingTorrents() const { |
|
|
|
for ( ; torrentIT != torrentITend; ++torrentIT) { |
|
|
|
for ( ; torrentIT != torrentITend; ++torrentIT) { |
|
|
|
if (torrentIT->is_valid()) { |
|
|
|
if (torrentIT->is_valid()) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const torrent_status::state_t state = torrentIT->status().state; |
|
|
|
const torrent_status status = torrentIT->status(); |
|
|
|
if (state != torrent_status::finished && state != torrent_status::seeding) |
|
|
|
if (status.state != torrent_status::finished && status.state != torrent_status::seeding |
|
|
|
|
|
|
|
&& !status.paused) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} catch(std::exception) {} |
|
|
|
} catch(std::exception) {} |
|
|
|
} |
|
|
|
} |
|
|
|