mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
Merge pull request #1403 from G10h4ck/gui_dht_fixes
add missing DEFINE, fix small bugs
This commit is contained in:
commit
d3e690b0d6
@ -288,7 +288,7 @@ void DhtWindow::updateNetPeers()
|
||||
rsDht->getNetPeerList(peerIds);
|
||||
|
||||
/* collate peer stats */
|
||||
int nPeers = peerIds.size();
|
||||
size_t nPeers = peerIds.size();
|
||||
|
||||
// from DHT peers
|
||||
int nOnlinePeers = 0;
|
||||
@ -339,7 +339,7 @@ void DhtWindow::updateNetPeers()
|
||||
for(it = peerIds.begin(); it != peerIds.end(); ++it)
|
||||
{
|
||||
/* find the entry */
|
||||
QTreeWidgetItem *peer_item = NULL;
|
||||
QTreeWidgetItem *peer_item = nullptr;
|
||||
#if 0
|
||||
QString qpeerid = QString::fromStdString(*it);
|
||||
int itemCount = ui.peerTreeWidget->topLevelItemCount();
|
||||
@ -438,7 +438,7 @@ void DhtWindow::updateNetPeers()
|
||||
case RSDHT_PEERCONN_CONNECTED:
|
||||
{
|
||||
cpsstr = tr("Connected");
|
||||
break;
|
||||
|
||||
switch(status.mPeerConnectMode)
|
||||
{
|
||||
default:
|
||||
|
@ -432,6 +432,10 @@ rs_gxs_trans {
|
||||
}
|
||||
}
|
||||
|
||||
bitdht {
|
||||
DEFINES *= RS_USE_BITDHT
|
||||
}
|
||||
|
||||
rs_async_chat {
|
||||
DEFINES *= RS_ASYNC_CHAT
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user