Fix a crash if user tries to toggle bookmark with no capture loaded

This commit is contained in:
baldurk
2021-06-30 11:43:51 +01:00
parent c451dc81f3
commit 00efa28f2f
+1
View File
@@ -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); });