fixed retrotor compilation when removing dht and udp

This commit is contained in:
csoler 2017-12-31 17:27:21 +01:00
parent c00a236004
commit da5253059a
8 changed files with 47 additions and 15 deletions

View file

@ -484,6 +484,7 @@ void ConnectProgressDialog::updateLookupStatus()
ui->LookupProgressBar->setValue(calcProgress(now, mLookupTS, CONNECT_LOOKUP_TYPICAL, CONNECT_LOOKUP_SLOW, CONNECT_LOOKUP_PERIOD));
#ifdef RS_USE_BITDHT
/* now actually look at the DHT Details */
RsDhtNetPeer status;
rsDht->getNetPeerStatus(mId, status);
@ -520,6 +521,7 @@ void ConnectProgressDialog::updateLookupStatus()
mLookupStatus = CONNECT_LOOKUP_ONLINE;
break;
}
#endif
}
@ -572,6 +574,7 @@ void ConnectProgressDialog::updateUdpStatus()
ui->UdpProgressBar->setValue(calcProgress(now, mUdpTS, CONNECT_UDP_TYPICAL, CONNECT_UDP_SLOW, CONNECT_UDP_PERIOD));
#ifdef RS_USE_BITDHT
/* now lookup details from Dht */
RsDhtNetPeer status;
rsDht->getNetPeerStatus(mId, status);
@ -599,6 +602,7 @@ void ConnectProgressDialog::updateUdpStatus()
}
}
}
#endif
}

View file

@ -279,6 +279,7 @@ void DhtWindow::updateNetStatus()
void DhtWindow::updateNetPeers()
{
#ifdef RS_USE_BITDHT
//QTreeWidget *peerTreeWidget = ui.peerTreeWidget;
std::list<RsPeerId> peerIds;
@ -364,7 +365,6 @@ void DhtWindow::updateNetPeers()
QHeaderView * _header = ui.peerTreeWidget->header () ;
_header->resizeSection ( PTW_COL_RSNAME, 170 );
/* update the data */
RsDhtNetPeer status;
rsDht->getNetPeerStatus(*it, status);
@ -518,6 +518,7 @@ void DhtWindow::updateNetPeers()
//peerSummaryLabel->setText(connstr);
#endif
}