Don't display invalid thread in failure dialog.

This commit is contained in:
Bartosz Taudul 2019-02-28 19:31:45 +01:00
parent 06f83bbdef
commit d80dc82b96

View File

@ -633,9 +633,12 @@ bool View::Draw()
ImGui::SameLine(); ImGui::SameLine();
ImGui::Text( "%s:%i", s_instance->m_worker.GetString( srcloc.file ), srcloc.line ); ImGui::Text( "%s:%i", s_instance->m_worker.GetString( srcloc.file ), srcloc.line );
} }
TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) ); if( data.thread != 0 )
ImGui::SameLine(); {
ImGui::TextDisabled( "(0x%" PRIX64 ")", data.thread ); TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) );
ImGui::SameLine();
ImGui::TextDisabled( "(0x%" PRIX64 ")", data.thread );
}
ImGui::Separator(); ImGui::Separator();
if( ImGui::Button( "I understand" ) ) if( ImGui::Button( "I understand" ) )
{ {