From 632faf55be90159ff88ce7c2546b091e1443b57b Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 5 Feb 2014 21:50:29 +0200 Subject: [PATCH] Fix build with libtorrent 0.15.x --- src/addnewtorrentdialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp index 8cda741e6..056bc318a 100644 --- a/src/addnewtorrentdialog.cpp +++ b/src/addnewtorrentdialog.cpp @@ -636,9 +636,7 @@ void AddNewTorrentDialog::setupTreeview() { ui->date_lbl->setText(m_torrentInfo->creation_date() ? misc::toQString(*m_torrentInfo->creation_date()) : tr("Not available")); updateDiskSpaceLabel(); -#if LIBTORRENT_VERSION_NUM >= 1600 - file_storage fs = m_torrentInfo->files(); -#endif + file_storage fs = m_torrentInfo->files(); // Populate m_filesList for (int i = 0; i < m_torrentInfo->num_files(); ++i) {