mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
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:
parent
aae947ecd8
commit
5de5cf2fa5
@ -783,8 +783,13 @@ void PeersDialog::removefriend()
|
||||
|
||||
if (rsPeers)
|
||||
{
|
||||
rsPeers->removeFriend(getPeerRsCertId(c));
|
||||
emit friendsUpdated() ;
|
||||
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));
|
||||
emit friendsUpdated() ;
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user