From 475d63dad8f752debb3e32c210704dc12d56a14c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 18 Dec 2009 17:26:00 +0000 Subject: [PATCH] - Fix "Append .!qB extension" feature. It appeared only for empty files (instead of incomplete ones) --- src/bittorrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 147b72c4d..0da93fa32 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1300,7 +1300,8 @@ void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) { h.file_progress(fp); for(int i=0; i 0 && (fp[i]/(double)file_size) < 1.) { QString name = misc::toQString(h.get_torrent_info().file_at(i).path.string()); if(!name.endsWith(".!qB")) { qDebug("Renaming %s to %s", name.toLocal8Bit().data(), (name+".!qB").toLocal8Bit().data());