Fixed start of chat with right or double click on a friend item (not location) in friend list.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7633 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-10-25 12:26:09 +00:00
parent 26f93c2a55
commit a3af37c7e4
4 changed files with 75 additions and 48 deletions

View file

@ -1278,14 +1278,22 @@ void FriendList::chatfriendproxy()
*
* @param pPeer the gpg or ssl QTreeWidgetItem to chat with
*/
void FriendList::chatfriend(QTreeWidgetItem *pPeer)
void FriendList::chatfriend(QTreeWidgetItem *item)
{
if (pPeer == NULL) {
if (item == NULL) {
return;
}
std::string id = getRsId(pPeer);
ChatDialog::chatFriend(RsPeerId(id));
switch (item->type()) {
case TYPE_GROUP:
break;
case TYPE_GPG:
ChatDialog::chatFriend(RsPgpId(getRsId(item)));
break;
case TYPE_SSL:
ChatDialog::chatFriend(RsPeerId(getRsId(item)));
break;
}
}
void FriendList::addFriend()