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,16 +298,16 @@ void NetworkDialog::insertConnect()
|
||||
if (detail.lastConnect==0 ) {
|
||||
if(detail.state & RS_PEER_STATE_FRIEND) {
|
||||
out << "Friend never seen";
|
||||
} else {
|
||||
out << "0"; // Is zero
|
||||
}
|
||||
item -> setText(3, QString::fromStdString(out.str()));
|
||||
} else {
|
||||
// Show that there is no Trust
|
||||
item -> setText(3, QString::fromStdString(RsPeerTrustString(detail.trustLvl)));
|
||||
}
|
||||
} 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;
|
||||
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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user