mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 14:06:45 +00:00
Recalculate root if fake markers are present. Closes #2870
This commit is contained in:
@@ -330,6 +330,10 @@ struct EventItemModel : public QAbstractItemModel
|
||||
for(uint32_t markerEID : fakeMarkers)
|
||||
CalculateTotalDuration(m_Nodes[markerEID]);
|
||||
|
||||
// if we had fake markers recalculate the root node for the frame
|
||||
if(!fakeMarkers.empty())
|
||||
CalculateTotalDuration(m_Nodes[0]);
|
||||
|
||||
// Qt's item model kind of sucks and doesn't have a good way to say "all data in this column has
|
||||
// changed" let alone "all data has changed". dataChanged() is limited to only a group of model
|
||||
// indices under a single parent. Instead we just force the view itself to refresh here.
|
||||
|
||||
Reference in New Issue
Block a user