Merge pull request #11317 from Chocobo1/preview

Fix "preview file" action not working
This commit is contained in:
Mike Tzou
2019-11-04 11:32:14 +08:00
committed by GitHub
6 changed files with 40 additions and 35 deletions

View File

@@ -2205,7 +2205,7 @@ void TorrentHandle::setSuperSeeding(const bool enable)
#endif
}
void TorrentHandle::flushCache()
void TorrentHandle::flushCache() const
{
m_nativeHandle.flush_cache();
}

View File

@@ -324,7 +324,7 @@ namespace BitTorrent
void setUploadLimit(int limit);
void setDownloadLimit(int limit);
void setSuperSeeding(bool enable);
void flushCache();
void flushCache() const;
void addTrackers(const QVector<TrackerEntry> &trackers);
void replaceTrackers(const QVector<TrackerEntry> &trackers);
void addUrlSeeds(const QVector<QUrl> &urlSeeds);