Backup/recover torrent persistent data into each individual .fastresume file. This should mitigate the problem of users losing their torrents' settings/savepath/label after qbt wasn't shutdown cleanly.

This commit is contained in:
sledgehammer999
2013-09-29 21:32:27 +03:00
parent 4ac19e2b27
commit a1a5fb065e
2 changed files with 46 additions and 1 deletions

View File

@@ -184,6 +184,8 @@ private:
libtorrent::add_torrent_params initializeAddTorrentParams(const QString &hash);
libtorrent::entry generateFilePriorityResumeData(boost::intrusive_ptr<libtorrent::torrent_info> &t, const std::vector<int> &fp);
void updateRatioTimer();
void recoverPersistentData(const QString &hash, const std::vector<char> &buf);
void backupPersistentData(const QString &hash, boost::shared_ptr<libtorrent::entry> data);
private slots:
void addTorrentsFromScanFolder(QStringList&);