mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Fixed to display the right icons for the channels context menu
Added a warn MessageBox git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7344 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4c66f82da8
commit
9b1c5a0e85
5 changed files with 21 additions and 8 deletions
|
@ -630,13 +630,24 @@ void IdDialog::removeIdentity()
|
|||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
QString queryWrn;
|
||||
queryWrn.clear();
|
||||
queryWrn.append(tr("Do you really want to delete this Identity ?"));
|
||||
|
||||
if ((QMessageBox::question(this, tr("Really delete? "),queryWrn,QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes))== QMessageBox::Yes)
|
||||
{
|
||||
std::string keyId = item->text(RSID_COL_KEYID).toStdString();
|
||||
|
||||
uint32_t dummyToken = 0;
|
||||
RsGxsIdGroup group;
|
||||
group.mMeta.mGroupId=RsGxsGroupId(keyId);
|
||||
rsIdentity->deleteIdentity(dummyToken, group);
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
std::string keyId = item->text(RSID_COL_KEYID).toStdString();
|
||||
|
||||
uint32_t dummyToken = 0;
|
||||
RsGxsIdGroup group;
|
||||
group.mMeta.mGroupId=RsGxsGroupId(keyId);
|
||||
rsIdentity->deleteIdentity(dummyToken, group);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue