From 2ebca7159a3c7b4d470fbd51e87fb6e39c586d04 Mon Sep 17 00:00:00 2001 From: sehraf Date: Thu, 8 Nov 2018 18:13:20 +0100 Subject: [PATCH] add missing DEFINE, fix small bugs --- retroshare-gui/src/gui/statistics/DhtWindow.cpp | 6 +++--- retroshare.pri | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/statistics/DhtWindow.cpp b/retroshare-gui/src/gui/statistics/DhtWindow.cpp index 5684593fd..8527da286 100644 --- a/retroshare-gui/src/gui/statistics/DhtWindow.cpp +++ b/retroshare-gui/src/gui/statistics/DhtWindow.cpp @@ -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: diff --git a/retroshare.pri b/retroshare.pri index a8025dc79..77102e4e0 100644 --- a/retroshare.pri +++ b/retroshare.pri @@ -432,6 +432,10 @@ rs_gxs_trans { } } +bitdht { + DEFINES *= RS_USE_BITDHT +} + rs_async_chat { DEFINES *= RS_ASYNC_CHAT }