From 9b66e7e83da310f1779d45aae0a9883a67647269 Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Fri, 10 Nov 2017 18:32:18 +0300 Subject: [PATCH] fix non-latin peer name display in bw stats --- retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp b/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp index 980025a03..2c30c9b25 100644 --- a/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp +++ b/retroshare-gui/src/gui/statistics/BwCtrlWindow.cpp @@ -285,7 +285,7 @@ void BwCtrlWindow::updateBandwidth() std::string name = rsPeers->getPeerName(it->first); peer_item -> setData(COLUMN_PEERID, Qt::DisplayRole, QString::fromStdString(it->first.toStdString())); - peer_item -> setData(COLUMN_RSNAME, Qt::DisplayRole, QString::fromStdString(name)); + peer_item -> setData(COLUMN_RSNAME, Qt::DisplayRole, QString::fromUtf8(name.c_str())); peer_item -> setData(COLUMN_IN_RATE, Qt::DisplayRole, it->second.mRateIn); peer_item -> setData(COLUMN_IN_MAX, Qt::DisplayRole, it->second.mRateMaxIn);