Rework the GUI code for private torrents.

This commit is contained in:
sledgehammer999
2014-06-04 00:35:23 +03:00
parent b9bdd1c985
commit 27c641ffaa
2 changed files with 20 additions and 12 deletions

View File

@@ -336,6 +336,8 @@ bool QTorrentHandle::is_sequential_download() const {
}
bool QTorrentHandle::priv() const {
if (!has_metadata())
return false;
#if LIBTORRENT_VERSION_NUM < 10000
return torrent_handle::get_torrent_info().priv();
#else