Refresh event browser model when resource renames change

This commit is contained in:
baldurk
2021-07-01 15:15:02 +01:00
parent 038b1d451a
commit 5252a3b9b7
+9
View File
@@ -136,6 +136,13 @@ struct EventItemModel : public QAbstractItemModel
for(QModelIndex idx : m_BookmarkIndices)
RefreshIcon(idx);
}
if(m_Ctx.ResourceNameCacheID() != m_RenameCacheID)
{
m_View->viewport()->update();
}
m_RenameCacheID = m_Ctx.ResourceNameCacheID();
}
bool HasTimes() { return !m_Times.empty(); }
@@ -692,6 +699,8 @@ private:
QString m_FindString;
rdcarray<QModelIndex> m_FindResults;
int32_t m_RenameCacheID;
QMap<uint32_t, int> m_MessageCounts;
// captures could have a lot of events, 1 million is high but not unreasonable and certainly not