mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 12:18:05 -06:00
Fix compilation with libtorrent 0.15.x
This commit is contained in:
@@ -441,6 +441,7 @@ void PeerListWidget::handleSortColumnChanged(int col)
|
||||
|
||||
QString PeerListWidget::getConnectionString(const peer_info& peer)
|
||||
{
|
||||
#if LIBTORRENT_VERSION_NUM >= 1600
|
||||
#if LIBTORRENT_VERSION_NUM < 10000
|
||||
if (peer.connection_type & peer_info::bittorrent_utp) {
|
||||
#else
|
||||
@@ -448,6 +449,7 @@ QString PeerListWidget::getConnectionString(const peer_info& peer)
|
||||
#endif
|
||||
return QString::fromUtf8("μTP");
|
||||
}
|
||||
#endif
|
||||
|
||||
QString connection;
|
||||
switch(peer.connection_type) {
|
||||
|
||||
Reference in New Issue
Block a user