From 98561f9db9160d0ba609c1c0e6e062b99e307778 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 18 Dec 2009 20:33:59 +0000 Subject: [PATCH] - Fix "Append .!qB extension" for torrents without metadata (Magnet Links) --- src/bittorrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 56da8d9ff..781416f1d 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1295,7 +1295,7 @@ void Bittorrent::setDefaultTempPath(QString temppath) { #ifdef LIBTORRENT_0_15 void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) { - if(!h.is_valid()) return; + if(!h.is_valid() || !h.has_metadata()) return; std::vector fp; h.file_progress(fp); for(int i=0; i