mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Fixed a small error in fastresume files saving
This commit is contained in:
@@ -402,7 +402,7 @@ void bittorrent::saveFastResumeData(){
|
|||||||
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
||||||
if(QFile::exists(torrentBackup.path()+QDir::separator()+fileHash+".torrent")){
|
if(QFile::exists(torrentBackup.path()+QDir::separator()+fileHash+".torrent")){
|
||||||
// Remove old .fastresume data in case it exists
|
// Remove old .fastresume data in case it exists
|
||||||
QFile::remove(fileHash + ".fastresume");
|
QFile::remove(torrentBackup.path()+QDir::separator()+fileHash + ".fastresume");
|
||||||
// Write fast resume data
|
// Write fast resume data
|
||||||
entry resumeData = h.write_resume_data();
|
entry resumeData = h.write_resume_data();
|
||||||
file = fileHash + ".fastresume";
|
file = fileHash + ".fastresume";
|
||||||
|
|||||||
Reference in New Issue
Block a user