mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix a crash if user tries to toggle bookmark with no capture loaded
This commit is contained in:
@@ -969,6 +969,7 @@ void EventBrowser::events_contextMenu(const QPoint &pos)
|
||||
|
||||
expandAll.setEnabled(item && item->childCount() > 0);
|
||||
collapseAll.setEnabled(item && item->childCount() > 0);
|
||||
toggleBookmark.setEnabled(m_Ctx.IsCaptureLoaded());
|
||||
|
||||
QObject::connect(&expandAll, &QAction::triggered,
|
||||
[this, item]() { ui->events->expandAllItems(item); });
|
||||
|
||||
Reference in New Issue
Block a user