mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Correctly detect libtorrent version.
This commit is contained in:
@@ -41,7 +41,7 @@ TorrentContentModelFile::TorrentContentModelFile(const libtorrent::file_entry& f
|
||||
{
|
||||
Q_ASSERT(parent);
|
||||
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||
m_name = fsutils::fileName(misc::toQStringU(f.path.c_str()));
|
||||
#else
|
||||
m_name = misc::toQStringU(f.path.filename());
|
||||
|
||||
Reference in New Issue
Block a user