1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 20:44:15 +00:00

- Fix "Append .!qB extension" for torrents without metadata (Magnet Links)

This commit is contained in:
Christophe Dumez 2009-12-18 20:33:59 +00:00
parent b56dee2a92
commit 98561f9db9

View File

@ -1295,7 +1295,7 @@ void Bittorrent::setDefaultTempPath(QString temppath) {
#ifdef LIBTORRENT_0_15 #ifdef LIBTORRENT_0_15
void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) { void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) {
if(!h.is_valid()) return; if(!h.is_valid() || !h.has_metadata()) return;
std::vector<size_type> fp; std::vector<size_type> fp;
h.file_progress(fp); h.file_progress(fp);
for(int i=0; i<h.num_files(); ++i) { for(int i=0; i<h.num_files(); ++i) {