mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 06:36:08 +00:00
Refresh event browser model when resource renames change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user