mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add checks in event browser for when no capture is loaded
This commit is contained in:
@@ -363,6 +363,9 @@ struct EventItemModel : public QAbstractItemModel
|
||||
if(m_FindString == text)
|
||||
return;
|
||||
|
||||
if(!m_Ctx.IsCaptureLoaded())
|
||||
return;
|
||||
|
||||
rdcarray<QModelIndex> oldResults;
|
||||
oldResults.swap(m_FindResults);
|
||||
|
||||
@@ -473,6 +476,9 @@ struct EventItemModel : public QAbstractItemModel
|
||||
if(eid == 0)
|
||||
return createIndex(0, 0, TagCaptureStart);
|
||||
|
||||
if(eid >= m_Actions.size())
|
||||
return QModelIndex();
|
||||
|
||||
const ActionDescription *action = m_Actions[eid];
|
||||
if(action)
|
||||
{
|
||||
@@ -3746,6 +3752,9 @@ void EventBrowser::findHighlight_timeout()
|
||||
|
||||
void EventBrowser::FindNext(bool forward)
|
||||
{
|
||||
if(!m_Ctx.IsCaptureLoaded())
|
||||
return;
|
||||
|
||||
m_Model->SetFindText(ui->findEvent->text());
|
||||
|
||||
// get the first result in this direction
|
||||
@@ -4498,6 +4507,9 @@ void EventBrowser::filter_CompletionBegin(QString prefix)
|
||||
|
||||
void EventBrowser::filter_apply()
|
||||
{
|
||||
if(!m_Ctx.IsCaptureLoaded())
|
||||
return;
|
||||
|
||||
if(ui->filterExpression->completionInProgress())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user