fixed tooltip and proper display of IDs in forums. Commented out class GxsIdTreeWidgetItem, which is unused and very similar to GxsIdRSTreeWidgetItem. fixed display of from field in messages. Still, it would be better to use a clean GxsIdRSTreeWidget instead of this QListWidget class

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7541 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-09-16 19:11:22 +00:00
parent 2cbeecbe73
commit c873421914
8 changed files with 37 additions and 11 deletions

View file

@ -1110,6 +1110,15 @@ void MessagesDialog::insertMessages()
text = "RetroShare";
} else {
text = QString::fromUtf8(rsPeers->getPeerName(it->srcId).c_str());
std::cerr << "(messages) getting name for id " << it->srcId << " => \"" << text.toStdString() << "\"" << std::endl;
if(text == "")
{
RsIdentityDetails details;
if (rsIdentity->getIdDetails(RsGxsId(it->srcId), details) && !details.mNickname.empty())
text = QString::fromUtf8(details.mNickname.c_str()) ;
else
text = "GXS_id(" + QString::fromStdString(it->srcId.toStdString())+")" ;
}
}
} else {
if (gotInfo || rsMsgs->getMessage(it->msgId, msgInfo)) {