diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 8d0dcb4d..7d2e9610 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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(); }