mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-19 14:55:54 -04:00
fixed coloring for insecure identities
This commit is contained in:
parent
71eba47fe7
commit
2f02f6cd2d
@ -430,6 +430,9 @@ QVariant RsIdentityListModel::toolTipRole(const EntryIndex& fmpe,int /*column*/)
|
||||
if(!id_info)
|
||||
return QVariant();
|
||||
|
||||
if(id_info->flags & RS_IDENTITY_FLAGS_IS_DEPRECATED)
|
||||
return QVariant( tr("\nThis identity has a insecure fingerprint (It's probably quite old).\nYou should get rid of it now and use a new one.\nThese identities are not supported anymore.") ) ;
|
||||
|
||||
if(rsIdentity->isOwnId(id_info->id))
|
||||
return QVariant(tr("This identity is owned by you"));
|
||||
|
||||
@ -438,9 +441,10 @@ QVariant RsIdentityListModel::toolTipRole(const EntryIndex& fmpe,int /*column*/)
|
||||
else
|
||||
{
|
||||
RsPeerDetails dd;
|
||||
rsPeers->getGPGDetails(id_info->owner,dd);
|
||||
|
||||
return QVariant("Identity owned by profile \""+ QString::fromUtf8(dd.name.c_str()) +"\" ("+QString::fromStdString(id_info->owner.toStdString()));
|
||||
if(rsPeers->getGPGDetails(id_info->owner,dd))
|
||||
return QVariant(tr("Identity owned by profile")+" \""+ QString::fromUtf8(dd.name.c_str()) +"\" ("+QString::fromStdString(id_info->owner.toStdString()));
|
||||
else
|
||||
return QVariant(tr("Identity possibly owned by unknown profile")+" \""+ QString::fromUtf8(dd.name.c_str()) +"\" ("+QString::fromStdString(id_info->owner.toStdString()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user