mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Check if match table has content.
This commit is contained in:
parent
d559da932f
commit
1219b72577
@ -3516,7 +3516,7 @@ void View::DrawStatistics()
|
|||||||
|
|
||||||
auto& srcloc = m_worker.GetSourceLocation( v->first );
|
auto& srcloc = m_worker.GetSourceLocation( v->first );
|
||||||
auto name = m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function );
|
auto name = m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function );
|
||||||
if( ImGui::Selectable( name, m_findZone.show && m_findZone.match[m_findZone.selMatch] == v->first, ImGuiSelectableFlags_SpanAllColumns ) )
|
if( ImGui::Selectable( name, m_findZone.show && !m_findZone.match.empty() && m_findZone.match[m_findZone.selMatch] == v->first, ImGuiSelectableFlags_SpanAllColumns ) )
|
||||||
{
|
{
|
||||||
m_findZone.show = true;
|
m_findZone.show = true;
|
||||||
m_findZone.Reset();
|
m_findZone.Reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user