mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix compilation with libtorrent 0.15.x
This commit is contained in:
parent
f4a9597ae8
commit
7ccefae3f8
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue