From 8dc34463e3e484d0454139ada85758a3de77d012 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 21 Jan 2010 21:18:46 +0000 Subject: [PATCH] Improved previous patch: Force recheck only if we detected that renaming overwrited an existing file --- src/bittorrent.cpp | 5 ++++- src/propertieswidget.cpp | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 3bc926a7a..f3bdb7463 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -1023,13 +1023,16 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr h.set_sequential_download(TorrentTempData::isSequential(hash)); // Import Files names from torrent addition dialog QStringList files_path = TorrentTempData::getFilesPath(hash); + bool force_recheck = false; if(files_path.size() == h.num_files()) { for(int i=0; isetData(index, new_name_last); // Remove old folder