mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Fix compilation with libtorrent 1.x.x.
This commit is contained in:
@@ -283,7 +283,7 @@ void TorrentContentModel::setupModelData(const libtorrent::torrent_info& t)
|
||||
for (int i = 0; i < t.num_files(); ++i) {
|
||||
const libtorrent::file_entry& fentry = t.file_at(i);
|
||||
current_parent = m_rootItem;
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
QString path = misc::toQStringU(fentry.path);
|
||||
#else
|
||||
QString path = misc::toQStringU(fentry.path.string());
|
||||
|
||||
Reference in New Issue
Block a user