Don't crash if the event browser isn't open when opening a capture

This commit is contained in:
baldurk
2019-10-10 16:48:42 +01:00
parent 0d658156b3
commit 4e6af7a47a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1246,7 +1246,7 @@ void EventBrowser::ClearFindIcons(RDTreeWidgetItem *parent)
void EventBrowser::ClearFindIcons()
{
if(m_Ctx.IsCaptureLoaded())
if(m_Ctx.IsCaptureLoaded() && ui->events->topLevelItemCount() > 0)
ClearFindIcons(ui->events->topLevelItem(0));
}