No saving if there's no file selector.

This commit is contained in:
Bartosz Taudul 2020-05-11 22:13:07 +02:00
parent 2195e032a6
commit 1c8aece53c
2 changed files with 6 additions and 0 deletions

View File

@ -1721,11 +1721,13 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
m_selectedAddresses.clear();
m_selectedAddresses.emplace( v.first );
}
#ifndef TRACY_NO_FILESELECTOR
else if( ImGui::IsMouseClicked( 1 ) )
{
ImGui::OpenPopup( "jumpPopup" );
m_jumpPopupAddr = v.first;
}
#endif
selJumpStart = v.second.min;
selJumpEnd = v.second.max;
selJumpTarget = v.first;
@ -1756,6 +1758,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
}
}
#ifndef TRACY_NO_FILESELECTOR
if( m_font ) ImGui::PopFont();
if( ImGui::BeginPopup( "jumpPopup" ) )
{
@ -1791,6 +1794,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
ImGui::EndPopup();
}
if( m_font ) ImGui::PushFont( m_font );
#endif
}
auto win = ImGui::GetCurrentWindow();

View File

@ -168,7 +168,9 @@ private:
void CheckRead( int line, RegsX86 reg, int limit );
void CheckWrite( int line, RegsX86 reg, int limit );
#ifndef TRACY_NO_FILESELECTOR
void Save( const Worker& worker, size_t start = 0, size_t stop = std::numeric_limits<size_t>::max() );
#endif
struct TokenizerState
{