Require symbol data for the entry stacks button in symbol view.

The button was gated on the entry stack maps being non-empty, but the
sample entry stacks window also needs the symbol data to display
anything. Without it, clicking the button silently closed the window
through its null guard. Match the gate used by the statistics window
menu items.
This commit is contained in:
Bartosz Taudul
2026-07-25 21:41:38 +02:00
parent dd8eff0de6
commit b3de7f34fb

View File

@@ -766,7 +766,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view, WindowConstraints
if( worker.AreCallstackSamplesReady() )
{
const auto stats = worker.GetSymbolStats( m_symAddr );
if( stats && !stats->wasReached.empty() )
if( stats && !stats->wasReached.empty() && worker.GetSymbolData( m_symAddr ) )
{
ImGui::SameLine();
ImGui::AlignTextToFramePadding();