mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Replace status_t with disk_status
libtorrent 2.1 has made the following change: "make status_t a proper flag type, to clean up oversized_file indication from disk subsystem" PR #18879.
This commit is contained in:
parent
758ea7edca
commit
634eb4a183
1 changed files with 4 additions and 0 deletions
|
@ -120,7 +120,11 @@ void CustomDiskIOThread::async_move_storage(lt::storage_index_t storage, std::st
|
||||||
m_nativeDiskIO->async_move_storage(storage, path, flags
|
m_nativeDiskIO->async_move_storage(storage, path, flags
|
||||||
, [=, handler = std::move(handler)](lt::status_t status, const std::string &path, const lt::storage_error &error)
|
, [=, handler = std::move(handler)](lt::status_t status, const std::string &path, const lt::storage_error &error)
|
||||||
{
|
{
|
||||||
|
#if LIBTORRENT_VERSION_NUM < 20100
|
||||||
if ((status != lt::status_t::fatal_disk_error) && (status != lt::status_t::file_exist))
|
if ((status != lt::status_t::fatal_disk_error) && (status != lt::status_t::file_exist))
|
||||||
|
#else
|
||||||
|
if ((status != lt::disk_status::fatal_disk_error) && (status != lt::disk_status::file_exist))
|
||||||
|
#endif
|
||||||
m_storageData[storage].savePath = newSavePath;
|
m_storageData[storage].savePath = newSavePath;
|
||||||
|
|
||||||
handler(status, path, error);
|
handler(status, path, error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue