mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
Merge pull request #2472 from hunbernd/fix/friendlistmodel-crash
Fixes crash after: (EE) asked to create an invalidated profile that a…
This commit is contained in:
commit
e9d5da330e
1 changed files with 6 additions and 1 deletions
|
@ -1052,7 +1052,12 @@ std::map<RsPgpId,uint32_t>::const_iterator RsFriendListModel::createInvalidatedP
|
||||||
|
|
||||||
if(rsPeers->getGPGDetails(pgp_id,hprof.profile_info))
|
if(rsPeers->getGPGDetails(pgp_id,hprof.profile_info))
|
||||||
{
|
{
|
||||||
std::cerr << "(EE) asked to create an invalidated profile that already exists!" << std::endl;
|
std::cerr << "(EE) asked to create an invalidated profile that already exists: " << pgp_id << std::endl;
|
||||||
|
|
||||||
|
pgp_indices[pgp_id] = mProfiles.size();
|
||||||
|
mProfiles.push_back(hprof);
|
||||||
|
it2 = pgp_indices.find(pgp_id);
|
||||||
|
|
||||||
return it2;
|
return it2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue