Pass function names to ViewSource() calls.

This commit is contained in:
Bartosz Taudul 2024-01-02 15:25:57 +01:00
parent 4757d101fc
commit 680174685b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
3 changed files with 6 additions and 6 deletions

View File

@ -367,7 +367,7 @@ void View::DrawFindZone()
{ {
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) ) if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
{ {
ViewSource( fileName, srcloc.line ); ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
else else
{ {

View File

@ -667,7 +667,7 @@ void View::DrawStatistics()
{ {
if( SourceFileValid( file, m_worker.GetCaptureTime(), *this, m_worker ) ) if( SourceFileValid( file, m_worker.GetCaptureTime(), *this, m_worker ) )
{ {
ViewSource( file, srcloc.line ); ViewSourceCheckKeyMod( file, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
else else
{ {

View File

@ -356,7 +356,7 @@ void View::DrawZoneInfoWindow()
} }
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) ) if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
{ {
ViewSource( fileName, srcloc.line ); ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
if( hilite ) if( hilite )
{ {
@ -955,7 +955,7 @@ void View::DrawZoneInfoWindow()
{ {
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) ) if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
{ {
ViewSource( fileName, srcloc.line ); ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
else else
{ {
@ -1407,7 +1407,7 @@ void View::DrawGpuInfoWindow()
} }
if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) ) if( ImGui::Button( ICON_FA_FILE_LINES " Source" ) )
{ {
ViewSource( fileName, srcloc.line ); ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
if( hilite ) if( hilite )
{ {
@ -1527,7 +1527,7 @@ void View::DrawGpuInfoWindow()
{ {
if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) ) if( SourceFileValid( fileName, m_worker.GetCaptureTime(), *this, m_worker ) )
{ {
ViewSource( fileName, srcloc.line ); ViewSourceCheckKeyMod( fileName, srcloc.line, m_worker.GetString( srcloc.function ) );
} }
else else
{ {