mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
Fixed removing of a node in friends list.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7869 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0039f0aa51
commit
eff55b2591
@ -1474,12 +1474,23 @@ void FriendList::removefriend()
|
|||||||
|
|
||||||
if (rsPeers)
|
if (rsPeers)
|
||||||
{
|
{
|
||||||
if(RsPgpId(getRsId(c)).isNull())
|
switch (c->type()) {
|
||||||
return ;
|
case TYPE_GPG:
|
||||||
|
if(!RsPgpId(getRsId(c)).isNull()) {
|
||||||
if ((QMessageBox::question(this, "RetroShare", tr("Do you want to remove this Friend?"), QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes)) == QMessageBox::Yes)
|
if ((QMessageBox::question(this, "RetroShare", tr("Do you want to remove this Friend?"), QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes)) == QMessageBox::Yes)
|
||||||
{
|
{
|
||||||
rsPeers->removeFriend(RsPgpId(getRsId(c)));
|
rsPeers->removeFriend(RsPgpId(getRsId(c)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case TYPE_SSL:
|
||||||
|
if (!RsPeerId(getRsId(c)).isNull()) {
|
||||||
|
if ((QMessageBox::question(this, "RetroShare", tr("Do you want to remove this node?"), QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes)) == QMessageBox::Yes)
|
||||||
|
{
|
||||||
|
rsPeers->removeFriendLocation(RsPeerId(getRsId(c)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user