Right click on call stack file name to view source.

This commit is contained in:
Bartosz Taudul 2018-08-17 22:06:59 +02:00
parent 5752156695
commit 12f2080387

View File

@ -5714,6 +5714,7 @@ void View::DrawCallstackWindow()
{
ImGui::BeginTooltip();
ImGui::Text( "Click on entry to copy it to clipboard." );
ImGui::Text( "Right click on entry to try to open source file." );
ImGui::EndTooltip();
}
ImGui::NextColumn();
@ -5761,6 +5762,13 @@ void View::DrawCallstackWindow()
{
ImGui::SetClipboardText( txt );
}
if( ImGui::IsItemClicked( 1 ) )
{
if( FileExists( txt ) )
{
SetTextEditorFile( txt, frame->line );
}
}
ImGui::PopTextWrapPos();
ImGui::NextColumn();
}