Fix compilation with libtorrent 1.x.x v2

This commit is contained in:
sledgehammer999
2013-06-08 18:21:15 +03:00
parent 94b58ca229
commit 22e2bafa7a
18 changed files with 98 additions and 98 deletions

View File

@@ -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 || LIBTORRENT_VERSION_MAJOR > 0
#if LIBTORRENT_VERSION_NUM >= 001600
QString path = misc::toQStringU(fentry.path);
#else
QString path = misc::toQStringU(fentry.path.string());