mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
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:
parent
26f93c2a55
commit
a3af37c7e4
4 changed files with 75 additions and 48 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue