Fix compilation with libtorrent 0.15.x

This commit is contained in:
sledgehammer999 2014-05-10 00:39:29 +03:00
commit 7ccefae3f8

View file

@ -441,6 +441,7 @@ void PeerListWidget::handleSortColumnChanged(int col)
QString PeerListWidget::getConnectionString(const peer_info& peer) QString PeerListWidget::getConnectionString(const peer_info& peer)
{ {
#if LIBTORRENT_VERSION_NUM >= 1600
#if LIBTORRENT_VERSION_NUM < 10000 #if LIBTORRENT_VERSION_NUM < 10000
if (peer.connection_type & peer_info::bittorrent_utp) { if (peer.connection_type & peer_info::bittorrent_utp) {
#else #else
@ -448,6 +449,7 @@ QString PeerListWidget::getConnectionString(const peer_info& peer)
#endif #endif
return QString::fromUtf8("μTP"); return QString::fromUtf8("μTP");
} }
#endif
QString connection; QString connection;
switch(peer.connection_type) { switch(peer.connection_type) {