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:
drbob 2008-04-07 22:54:15 +00:00
parent 98240bf6f0
commit 3f5966f2c0

View File

@ -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));