mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 13:24:16 -04:00
0008 Display connexion address in statusDefs Connect State (Patch from G10H4ck)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-IPv6@8032 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b21b5c2db4
commit
7096a61e21
1 changed files with 13 additions and 8 deletions
|
@ -183,18 +183,23 @@ QString StatusDefs::connectStateString(RsPeerDetails &details)
|
|||
break;
|
||||
}
|
||||
|
||||
if (details.connectStateString.empty() == false) {
|
||||
if (stateString.isEmpty() == false) {
|
||||
stateString += ": ";
|
||||
}
|
||||
if (!details.connectStateString.empty())
|
||||
{
|
||||
if (!stateString.isEmpty()) stateString += ": ";
|
||||
stateString += QString::fromStdString(details.connectStateString);
|
||||
}
|
||||
else if (!details.connectAddr.empty())
|
||||
{
|
||||
if (!stateString.isEmpty()) stateString += ": [";
|
||||
stateString += QString::fromStdString(details.connectAddr);
|
||||
stateString += "]:";
|
||||
stateString += QString::number(details.connectPort);
|
||||
}
|
||||
|
||||
/* HACK to display DHT Status info too */
|
||||
if (details.foundDHT) {
|
||||
if (stateString.isEmpty() == false) {
|
||||
stateString += ", ";
|
||||
}
|
||||
if (details.foundDHT)
|
||||
{
|
||||
if (!stateString.isEmpty()) stateString += ", ";
|
||||
stateString += qApp->translate("StatusDefs", "DHT: Contact");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue