mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-09 21:34:20 +00:00
Really fix compilation with 0.15.x.
This commit is contained in:
parent
c311080d8d
commit
1e802f2090
@ -2882,6 +2882,9 @@ void QBtSession::recoverPersistentData(const QString &hash, const std::vector<ch
|
|||||||
#if LIBTORRENT_VERSION_NUM < 001600
|
#if LIBTORRENT_VERSION_NUM < 001600
|
||||||
try {
|
try {
|
||||||
libtorrent::lazy_bdecode(&(buf.front()), &(buf.back()), fast);
|
libtorrent::lazy_bdecode(&(buf.front()), &(buf.back()), fast);
|
||||||
|
} catch (std::exception&) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (fast.type() != libtorrent::lazy_entry::dict_t)
|
if (fast.type() != libtorrent::lazy_entry::dict_t)
|
||||||
#else
|
#else
|
||||||
libtorrent::error_code ec;
|
libtorrent::error_code ec;
|
||||||
@ -2899,11 +2902,6 @@ void QBtSession::recoverPersistentData(const QString &hash, const std::vector<ch
|
|||||||
QString label = QString::fromUtf8(fast.dict_find_string_value("qBt-label").c_str());
|
QString label = QString::fromUtf8(fast.dict_find_string_value("qBt-label").c_str());
|
||||||
int priority = fast.dict_find_int_value("qBt-queuePosition");
|
int priority = fast.dict_find_int_value("qBt-queuePosition");
|
||||||
bool seedStatus = fast.dict_find_int_value("qBt-seedStatus");
|
bool seedStatus = fast.dict_find_int_value("qBt-seedStatus");
|
||||||
#if LIBTORRENT_VERSION_NUM < 001600
|
|
||||||
} catch (std::exception&) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TorrentPersistentData::saveSavePath(hash, savePath);
|
TorrentPersistentData::saveSavePath(hash, savePath);
|
||||||
TorrentPersistentData::setRatioLimit(hash, ratioLimit);
|
TorrentPersistentData::setRatioLimit(hash, ratioLimit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user