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::Text( "%s:%i", s_instance->m_worker.GetString( srcloc.file ), srcloc.line );
}
if( data.thread != 0 )
{
TextFocused( "Thread:", s_instance->m_worker.GetThreadString( data.thread ) );
ImGui::SameLine();
ImGui::TextDisabled( "(0x%" PRIX64 ")", data.thread );
}
ImGui::Separator();
if( ImGui::Button( "I understand" ) )
{