mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05: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
@ -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…
Reference in New Issue
Block a user