diff --git a/libretroshare/src/retroshare/rsidentity.h b/libretroshare/src/retroshare/rsidentity.h index 84483af2e..0c8c364e3 100644 --- a/libretroshare/src/retroshare/rsidentity.h +++ b/libretroshare/src/retroshare/rsidentity.h @@ -143,6 +143,7 @@ struct RsGxsIdGroup : RsSerializable rstime_t mLastUsageTS ; // Not Serialised - for GUI's benefit. + bool mPgpLinked; bool mPgpKnown; bool mIsAContact; // change that into flags one day RsPgpId mPgpId; diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index 5fe8581ee..e32d6788d 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -2017,6 +2017,7 @@ bool p3IdService::getGroupData(const uint32_t &token, std::vector } group.mIsAContact = (mContacts.find(RsGxsId(group.mMeta.mGroupId)) != mContacts.end()); + group.mPgpLinked = (!!(group.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID_kept_for_compatibility)) || !!(group.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID); groups.push_back(group); delete(item); diff --git a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp index 1b40563ce..cf9a87daf 100644 --- a/retroshare-gui/src/gui/Identity/IdEditDialog.cpp +++ b/retroshare-gui/src/gui/Identity/IdEditDialog.cpp @@ -637,7 +637,7 @@ void IdEditDialog::updateId() RsGxsId keyId; std::string gpg_password; - if(!mEditGroup.mPgpId.isNull()) + if(mEditGroup.mPgpLinked) { std::string gpg_name = rsPeers->getGPGName(rsPeers->getGPGOwnId()); bool cancelled;