mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
cd750d2024
commit
58cf788d6d
@ -298,30 +298,35 @@ void NetworkDialog::insertConnect()
|
|||||||
if (detail.lastConnect==0 ) {
|
if (detail.lastConnect==0 ) {
|
||||||
if(detail.state & RS_PEER_STATE_FRIEND) {
|
if(detail.state & RS_PEER_STATE_FRIEND) {
|
||||||
out << "Friend never seen";
|
out << "Friend never seen";
|
||||||
|
item -> setText(3, QString::fromStdString(out.str()));
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
// Dont Show a timestamp in RS calculate the day
|
// Dont Show a timestamp in RS calculate the day
|
||||||
QDateTime datum = QDateTime::fromTime_t(detail.lastConnect);
|
QDateTime datum = QDateTime::fromTime_t(detail.lastConnect);
|
||||||
// out << datum.toString(Qt::LocalDate);
|
// out << datum.toString(Qt::LocalDate);
|
||||||
QString stime = datum.toString(Qt::LocalDate);
|
QString stime = datum.toString(Qt::LocalDate);
|
||||||
|
|
||||||
item -> setText(3, stime);
|
item -> setText(3, stime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (4) Person */
|
/* (4) Person */
|
||||||
item -> setText(4, QString::fromStdString(detail.name));
|
item -> setText(4, QString::fromStdString(detail.name));
|
||||||
|
|
||||||
/* (5) Peer Address */
|
/* (5) Peer Address */
|
||||||
{
|
{
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
out << detail.localAddr << ":";
|
if(detail.state & RS_PEER_STATE_FRIEND) {
|
||||||
out << detail.localPort << "/";
|
out << detail.localAddr << ":";
|
||||||
out << detail.extAddr << ":";
|
out << detail.localPort << "/";
|
||||||
out << detail.extPort;
|
out << detail.extAddr << ":";
|
||||||
|
out << detail.extPort;
|
||||||
|
} else {
|
||||||
|
// No Trust => no IP Information
|
||||||
|
out << "";
|
||||||
|
}
|
||||||
item -> setText(5, QString::fromStdString(out.str()));
|
item -> setText(5, QString::fromStdString(out.str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user