mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 12:18:05 -06:00
Drop libtorrent 0.15.x support.
This commit is contained in:
@@ -283,11 +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_NUM >= 001600
|
||||
QString path = misc::toQStringU(fentry.path);
|
||||
#else
|
||||
QString path = misc::toQStringU(fentry.path.string());
|
||||
#endif
|
||||
// Iterate of parts of the path to create necessary folders
|
||||
QStringList pathFolders = path.split(QRegExp("[/\\\\]"), QString::SkipEmptyParts);
|
||||
pathFolders.removeLast();
|
||||
|
||||
Reference in New Issue
Block a user