Added a MessagesBox Question when removing a Friend

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2859 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-06 17:04:09 +00:00
parent aae947ecd8
commit 5de5cf2fa5

View File

@ -783,9 +783,14 @@ void PeersDialog::removefriend()
if (rsPeers) if (rsPeers)
{ {
if ((QMessageBox::question(this, tr("RetroShare"),tr("Do you want to remove this Friend?"),QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
{
rsPeers->removeFriend(getPeerRsCertId(c)); rsPeers->removeFriend(getPeerRsCertId(c));
emit friendsUpdated() ; emit friendsUpdated() ;
} }
else
return;
}
} }