|
|
@ -1546,7 +1546,7 @@ void QBtSession::loadSessionState() { |
|
|
|
// bdecode
|
|
|
|
// bdecode
|
|
|
|
lazy_entry e; |
|
|
|
lazy_entry e; |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 15 |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 15 |
|
|
|
error_code ec; |
|
|
|
libtorrent::error_code ec; |
|
|
|
lazy_bdecode(&in[0], &in[0] + in.size(), e, ec); |
|
|
|
lazy_bdecode(&in[0], &in[0] + in.size(), e, ec); |
|
|
|
if (!ec) { |
|
|
|
if (!ec) { |
|
|
|
#else |
|
|
|
#else |
|
|
@ -1898,7 +1898,7 @@ void QBtSession::setListeningPort(int port) { |
|
|
|
Preferences pref; |
|
|
|
Preferences pref; |
|
|
|
std::pair<int,int> ports(port, port); |
|
|
|
std::pair<int,int> ports(port, port); |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 15 |
|
|
|
#if LIBTORRENT_VERSION_MINOR > 15 |
|
|
|
error_code ec; |
|
|
|
libtorrent::error_code ec; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
const QString iface_name = pref.getNetworkInterface(); |
|
|
|
const QString iface_name = pref.getNetworkInterface(); |
|
|
|
if (iface_name.isEmpty()) { |
|
|
|
if (iface_name.isEmpty()) { |
|
|
|