mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
BUGFIX: Fix directory scanning (stop trying to download the same files several times)
This commit is contained in:
parent
17d880189f
commit
fb9c1938ea
@ -16,6 +16,7 @@
|
|||||||
- BUGFIX: Fixed deletion from hard drive (failed for non-empty folders)
|
- BUGFIX: Fixed deletion from hard drive (failed for non-empty folders)
|
||||||
- BUGFIX: qBittorrent now identifies its version correctly on the network
|
- BUGFIX: qBittorrent now identifies its version correctly on the network
|
||||||
- BUGFIX: Preventing GUI from freezing when deleting a download permanently
|
- BUGFIX: Preventing GUI from freezing when deleting a download permanently
|
||||||
|
- BUGFIX: Fix directory scanning (stop trying to download the same files several times)
|
||||||
- COSMETIC: Replaced OSD messages by systray messages
|
- COSMETIC: Replaced OSD messages by systray messages
|
||||||
|
|
||||||
* Tue Nov 28 2006 - Christophe Dumez <chris@qbittorrent.org> - v0.8.0
|
* Tue Nov 28 2006 - Christophe Dumez <chris@qbittorrent.org> - v0.8.0
|
||||||
|
@ -1303,11 +1303,6 @@ void GUI::addTorrent(const QString& path, bool fromScanDir, const QString& from_
|
|||||||
if(scan_dir.at(scan_dir.length()-1) != QDir::separator()){
|
if(scan_dir.at(scan_dir.length()-1) != QDir::separator()){
|
||||||
scan_dir += QDir::separator();
|
scan_dir += QDir::separator();
|
||||||
}
|
}
|
||||||
//rename torrent file to match file name and find it easily later
|
|
||||||
dest_file = scan_dir+hash.toUtf8()+".torrent";
|
|
||||||
if(!QFile::exists(dest_file)){
|
|
||||||
QFile::rename(file, dest_file);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Adding torrent to download list
|
// Adding torrent to download list
|
||||||
DLListModel->insertRow(row);
|
DLListModel->insertRow(row);
|
||||||
@ -1342,6 +1337,10 @@ void GUI::addTorrent(const QString& path, bool fromScanDir, const QString& from_
|
|||||||
// remove temporary file
|
// remove temporary file
|
||||||
QFile::remove(file);
|
QFile::remove(file);
|
||||||
}
|
}
|
||||||
|
// Delete from scan dir to avoid trying to download it again
|
||||||
|
if(fromScanDir){
|
||||||
|
QFile::remove(file);
|
||||||
|
}
|
||||||
// Update info Bar
|
// Update info Bar
|
||||||
if(!fastResume){
|
if(!fastResume){
|
||||||
if(!from_url.isNull()){
|
if(!from_url.isNull()){
|
||||||
|
Loading…
Reference in New Issue
Block a user