mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
* Updated rspeers.h to match libretroshare.
* switched pgp password to encrypted entry * corrected NetworkDialog / NetworkView to use validLvl instead of trustLvl. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1271 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d4b52a59e5
commit
42d2b62420
@ -195,7 +195,7 @@ void NetworkDialog::connecttreeWidgetCostumPopupMenu( QPoint point )
|
||||
}
|
||||
else // not a friend
|
||||
{
|
||||
if(detail.trustLvl > RS_TRUST_LVL_MARGINAL) // it's a denied old friend.
|
||||
if(detail.validLvl > RS_TRUST_LVL_MARGINAL) // it's a denied old friend.
|
||||
makefriendAct = new QAction(QIcon(IMAGE_MAKEFRIEND), tr( "Accept friend" ), this );
|
||||
else
|
||||
makefriendAct = new QAction(QIcon(IMAGE_MAKEFRIEND), tr( "Make friend" ), this );
|
||||
@ -203,7 +203,7 @@ void NetworkDialog::connecttreeWidgetCostumPopupMenu( QPoint point )
|
||||
connect( makefriendAct , SIGNAL( triggered() ), this, SLOT( makeFriend() ) );
|
||||
contextMnu.addAction( makefriendAct);
|
||||
#ifdef TODO
|
||||
if(detail.trustLvl > RS_TRUST_LVL_MARGINAL) // it's a denied old friend.
|
||||
if(detail.validLvl > RS_TRUST_LVL_MARGINAL) // it's a denied old friend.
|
||||
{
|
||||
deleteCertAct = new QAction(QIcon(IMAGE_PEERDETAILS), tr( "Delete certificate" ), this );
|
||||
connect( deleteCertAct, SIGNAL( triggered() ), this, SLOT( deleteCert() ) );
|
||||
@ -454,7 +454,7 @@ void NetworkDialog::insertConnect()
|
||||
item -> setToolTip(k,QString::fromStdString(detail.name) + QString(tr(" is trusting you. \nRight-click and select 'make friend' to be able to connect."))) ;
|
||||
}
|
||||
#ifdef RS_USE_PGPSSL
|
||||
else if (detail.trustLvl > GPGME_VALIDITY_MARGINAL)
|
||||
else if (detail.validLvl > GPGME_VALIDITY_MARGINAL)
|
||||
{
|
||||
backgrndcolor=Qt::cyan;
|
||||
item -> setIcon(0,(QIcon(IMAGE_DENIED)));
|
||||
|
@ -170,7 +170,7 @@ void NetworkView::insertPeers()
|
||||
{
|
||||
continue;
|
||||
}
|
||||
switch(detail.trustLvl)
|
||||
switch(detail.validLvl)
|
||||
{
|
||||
default:
|
||||
case GPGME_VALIDITY_UNKNOWN:
|
||||
|
@ -708,7 +708,11 @@ p, li { white-space: pre-wrap; }
|
||||
<widget class="QComboBox" name="loadName" />
|
||||
</item>
|
||||
<item row="5" column="0" colspan="2" >
|
||||
<widget class="QLineEdit" name="loadGPGPasswd" />
|
||||
<widget class="QLineEdit" name="loadGPGPasswd" >
|
||||
<property name="echoMode" >
|
||||
<enum>QLineEdit::Password</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" >
|
||||
<widget class="QLabel" name="label_5" >
|
||||
|
@ -83,6 +83,7 @@ class RsPeerDetails
|
||||
std::list<std::string> signers;
|
||||
|
||||
uint32_t trustLvl;
|
||||
uint32_t validLvl;
|
||||
|
||||
bool ownsign; /* we have signed certificate */
|
||||
bool trusted; /* we trust their signature on others */
|
||||
|
Loading…
Reference in New Issue
Block a user