mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
fixed retrotor compilation when removing dht and udp
This commit is contained in:
parent
c00a236004
commit
da5253059a
8 changed files with 47 additions and 15 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue