mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-13 05:41:17 +00:00

Trying to get the number of files of a torrent with no metadata causes a crash. Prevent this by first checking if the metadata is available. If the number of files can't be determined, -1 will be returned. Closes #2522.