Merge pull request #1265 from csoler/v0.6-GxsFix

fixed bug causing new forums and identities to not show up immediately
This commit is contained in:
csoler 2018-05-16 11:17:22 +02:00 committed by GitHub
commit 291c86e2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -952,6 +952,8 @@ void RsDataService::locked_updateGrpMetaCache(const RsGxsGrpMetaData& meta)
if(it != mGrpMetaDataCache.end())
*(it->second) = meta ;
else
mGrpMetaDataCache[meta.mGroupId] = new RsGxsGrpMetaData(meta) ;
}
void RsDataService::locked_clearGrpMetaCache(const RsGxsGroupId& gid)

View File

@ -67,6 +67,10 @@ void RsGxsUpdateBroadcastBase::updateBroadcastChanged()
/* Update only update when the widget is visible. */
if (mUpdateWhenInvisible || !widget || widget->isVisible()) {
if (!mGrpIds.empty() || !mGrpIdsMeta.empty() || !mMsgIds.empty() || !mMsgIdsMeta.empty())
mFillComplete = true ;
securedUpdateDisplay();
}
}

View File

@ -37,7 +37,7 @@ protected:
// This is overloaded in subclasses.
virtual void updateDisplay(bool complete) = 0;
private slots:
public slots:
void fillDisplay(bool complete);
private: