fixed bug causing new forums and identities to not show up immediately

This commit is contained in:
csoler 2018-05-16 11:15:18 +02:00
parent 57cff61873
commit 4661329bee
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
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: