From 6a6077bf1d2aae5d4d5f81aa34fa806fdc26bd01 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 21 Jan 2010 21:14:54 +0000 Subject: [PATCH] Improved previous patch: Force recheck only if we detected that renaming overwrote 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