mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Fix compilation with libtorrent 1.x.x.
This commit is contained in:
@@ -41,7 +41,7 @@ TorrentContentModelFile::TorrentContentModelFile(const libtorrent::file_entry& f
|
||||
{
|
||||
Q_ASSERT(parent);
|
||||
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
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