mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 06:13:36 -07:00
- Fixed a small error in fastresume files saving
This commit is contained in:
parent
da867a767b
commit
f5627e4345
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue