1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Fix hiding of unwanted files

This commit is contained in:
Christophe Dumez 2012-07-02 20:30:45 +03:00
parent 2747481816
commit 5d5bf403a8

View File

@ -1271,7 +1271,7 @@ add_torrent_params QBtSession::initializeAddTorrentParams(const QString &hash) {
p.storage_mode = storage_mode_sparse;
// Priorities
#if LIBTORRENT_VERSION_MINOR > 15
/*#if LIBTORRENT_VERSION_MINOR > 15
if (TorrentTempData::hasTempData(hash)) {
std::vector<int> fp;
TorrentTempData::getFilesPriority(hash, fp);
@ -1283,7 +1283,7 @@ add_torrent_params QBtSession::initializeAddTorrentParams(const QString &hash) {
p.file_priorities = fp_conv;
}
}
#endif
#endif*/
// Start in pause
p.paused = true;
@ -1303,12 +1303,10 @@ void QBtSession::loadTorrentTempData(QTorrentHandle &h, QString savePath, bool m
// The following is useless for newly added magnet
if (!magnet) {
#if LIBTORRENT_VERSION_MINOR < 16
// Files priorities
vector<int> fp;
TorrentTempData::getFilesPriority(hash, fp);
h.prioritize_files(fp);
#endif
// Prioritize first/last piece
h.prioritize_first_last_piece(TorrentTempData::isSequential(hash));