mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Prevent opening obsolete source files.
This commit is contained in:
parent
3e2260bdcb
commit
3a1f980a36
@ -581,12 +581,19 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_map<ui
|
|||||||
SmallColorBox( color );
|
SmallColorBox( color );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
auto fstr = worker.GetString( StringIdx( v.first ) );
|
auto fstr = worker.GetString( StringIdx( v.first ) );
|
||||||
ImGui::PushID( v.first );
|
if( SourceFileValid( fstr, worker.GetCaptureTime() ) )
|
||||||
if( ImGui::Selectable( fstr, fstr == m_file ) )
|
|
||||||
{
|
{
|
||||||
ParseSource( fstr, &worker );
|
ImGui::PushID( v.first );
|
||||||
m_targetLine = v.second;
|
if( ImGui::Selectable( fstr, fstr == m_file ) )
|
||||||
SelectLine( v.second, &worker );
|
{
|
||||||
|
ParseSource( fstr, &worker );
|
||||||
|
m_targetLine = v.second;
|
||||||
|
SelectLine( v.second, &worker );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextDisabledUnformatted( fstr );
|
||||||
}
|
}
|
||||||
ImGui::PopID();
|
ImGui::PopID();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user