Update Network Tab.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@737 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
notdefine 2008-09-27 14:48:57 +00:00
parent cd750d2024
commit 58cf788d6d

View File

@ -298,16 +298,16 @@ void NetworkDialog::insertConnect()
if (detail.lastConnect==0 ) {
if(detail.state & RS_PEER_STATE_FRIEND) {
out << "Friend never seen";
item -> setText(3, QString::fromStdString(out.str()));
} else {
out << "0"; // Is zero
// Show that there is no Trust
item -> setText(3, QString::fromStdString(RsPeerTrustString(detail.trustLvl)));
}
item -> setText(3, QString::fromStdString(out.str()));
} else {
// Dont Show a timestamp in RS calculate the day
QDateTime datum = QDateTime::fromTime_t(detail.lastConnect);
// out << datum.toString(Qt::LocalDate);
QString stime = datum.toString(Qt::LocalDate);
item -> setText(3, stime);
}
}
@ -318,10 +318,15 @@ void NetworkDialog::insertConnect()
/* (5) Peer Address */
{
std::ostringstream out;
out << detail.localAddr << ":";
out << detail.localPort << "/";
out << detail.extAddr << ":";
out << detail.extPort;
if(detail.state & RS_PEER_STATE_FRIEND) {
out << detail.localAddr << ":";
out << detail.localPort << "/";
out << detail.extAddr << ":";
out << detail.extPort;
} else {
// No Trust => no IP Information
out << "";
}
item -> setText(5, QString::fromStdString(out.str()));
}