Merge pull request #2152 from PhenomRetroShare/Fix_ChannelRsLink

Fix Channel RsLink if update before UI Init
This commit is contained in:
csoler 2020-12-09 23:05:50 +01:00 committed by GitHub
commit 5cbe61354f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ void GxsGroupFrameDialog::initUi()
mInitialized = true;
}
void GxsGroupFrameDialog::showEvent(QShowEvent *event)
void GxsGroupFrameDialog::showEvent(QShowEvent* /*event*/)
{
if (!mInitialized )
{
@ -1086,7 +1086,9 @@ void GxsGroupFrameDialog::updateMessageSummaryListReal(RsGxsGroupId groupId)
void GxsGroupFrameDialog::updateGroupSummary()
{
RsThread::async([this]()
if (!mInitialized) return;//UI not yet initialized
RsThread::async([this]()
{
auto groupInfo = new std::list<RsGxsGenericGroupData*>() ;