Fix compilation with libtorrent 1.x.x.

This commit is contained in:
sledgehammer999
2013-05-07 22:57:18 +03:00
parent 4f667c6e7d
commit 94b58ca229
19 changed files with 99 additions and 99 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
#if LIBTORRENT_VERSION_MINOR >= 16 || LIBTORRENT_VERSION_MAJOR > 0
QString path = misc::toQStringU(fentry.path);
#else
QString path = misc::toQStringU(fentry.path.string());