mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Searching for an EID should return it first before any text results
This commit is contained in:
@@ -184,6 +184,13 @@ struct EventItemModel : public QAbstractItemModel
|
||||
m_FindString = text;
|
||||
m_FindResults.clear();
|
||||
|
||||
bool eidOK = false;
|
||||
uint32_t eid = text.toUInt(&eidOK);
|
||||
|
||||
// include EID in results first if the text parses as an integer
|
||||
if(eidOK && eid > 0 && eid < m_Draws.size())
|
||||
m_FindResults.push_back(GetIndexForEID(eid));
|
||||
|
||||
if(!m_FindString.isEmpty())
|
||||
{
|
||||
// do a depth-first search to find results
|
||||
|
||||
Reference in New Issue
Block a user