Fixed SIGSEGV fault, thx to Phenom for the Patch ( FixConfCertDialog_SIGSEGV_v0.6.patch )

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7263 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2014-04-11 11:47:46 +00:00
parent 9ea4ab24e0
commit d1e526cdf7

View File

@ -121,13 +121,13 @@ ConfCertDialog::ConfCertDialog(const RsPeerId& id, const RsPgpId &pgp_id, QWidge
ConfCertDialog::~ConfCertDialog() ConfCertDialog::~ConfCertDialog()
{ {
if(peerId.isNull()) // if(peerId.isNull())
{ {
QMap<RsPeerId, ConfCertDialog*>::iterator it = instances_ssl.find(peerId); QMap<RsPeerId, ConfCertDialog*>::iterator it = instances_ssl.find(peerId);
if (it != instances_ssl.end()) if (it != instances_ssl.end())
instances_ssl.erase(it); instances_ssl.erase(it);
} }
else // else
{ {
QMap<RsPgpId, ConfCertDialog*>::iterator it = instances_pgp.find(pgpId); QMap<RsPgpId, ConfCertDialog*>::iterator it = instances_pgp.find(pgpId);
if (it != instances_pgp.end()) if (it != instances_pgp.end())
@ -158,8 +158,6 @@ void ConfCertDialog::load()
{ {
RsPeerDetails detail; RsPeerDetails detail;
bool ok = false ;
if(!(rsPeers->getPeerDetails(peerId, detail) || rsPeers->getGPGDetails(pgpId, detail))) if(!(rsPeers->getPeerDetails(peerId, detail) || rsPeers->getGPGDetails(pgpId, detail)))
{ {
QMessageBox::information(this, QMessageBox::information(this,