mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
Fixed NULL pointer - if you try to connect to noone. (thanks jarret)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@486 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
98240bf6f0
commit
3f5966f2c0
1 changed files with 6 additions and 0 deletions
|
@ -469,6 +469,12 @@ void PeersDialog::connectfriend()
|
|||
{
|
||||
QTreeWidgetItem *c = getCurrentPeer();
|
||||
std::cerr << "PeersDialog::connectfriend()" << std::endl;
|
||||
if (!c)
|
||||
{
|
||||
std::cerr << "PeersDialog::connectfriend() Noone Selected -- sorry" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (rsPeers)
|
||||
{
|
||||
rsPeers->connectAttempt(getPeerRsCertId(c));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue