mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 08:05:42 +00:00
Don't try to set find icons if no capture is loaded
This commit is contained in:
@@ -1278,7 +1278,7 @@ int EventBrowser::SetFindIcons(RDTreeWidgetItem *parent, QString filter)
|
||||
|
||||
int EventBrowser::SetFindIcons(QString filter)
|
||||
{
|
||||
if(filter.isEmpty())
|
||||
if(filter.isEmpty() || !m_Ctx.IsCaptureLoaded())
|
||||
return 0;
|
||||
|
||||
return SetFindIcons(ui->events->topLevelItem(0), filter);
|
||||
|
||||
Reference in New Issue
Block a user