Fix requested torrent resume data handling

Session should increase an appropriate counter each time
the torrent resume data is requested to save.
This commit is contained in:
Vladimir Golovnev (Glassez) 2019-07-22 14:22:26 +03:00
commit b822d2c380
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
3 changed files with 26 additions and 26 deletions

View file

@ -427,6 +427,7 @@ namespace BitTorrent
void bottomTorrentsQueuePos(const QStringList &hashes);
// TorrentHandle interface
void handleTorrentSaveResumeDataRequested(TorrentHandle *const torrent);
void handleTorrentShareLimitChanged(TorrentHandle *const torrent);
void handleTorrentNameChanged(TorrentHandle *const torrent);
void handleTorrentSavePathChanged(TorrentHandle *const torrent);
@ -544,7 +545,6 @@ namespace BitTorrent
void updateSeedingLimitTimer();
void exportTorrentFile(TorrentHandle *const torrent, TorrentExportFolder folder = TorrentExportFolder::Regular);
void saveTorrentResumeData(TorrentHandle *const torrent);
void handleAlert(const lt::alert *a);
void dispatchTorrentAlert(const lt::alert *a);