1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Merge pull request #2840 from pmzqla/numfiles

Use out of range value when the number of files can't be determined
This commit is contained in:
sledgehammer999 2015-04-07 21:32:02 +03:00
commit 970e7440c6

View File

@ -243,6 +243,8 @@ bool QTorrentHandle::has_filtered_pieces() const
int QTorrentHandle::num_files() const
{
if (!has_metadata())
return -1;
#if LIBTORRENT_VERSION_NUM < 10000
return torrent_handle::get_torrent_info().num_files();
#else