Fix possible threadsafety issue in FOOTPRINT_PREVIEW_PANEL

This commit is contained in:
Chris Pavlina 2017-03-08 17:02:10 -05:00
parent 82f587f4ff
commit a73abbfc31
1 changed files with 4 additions and 2 deletions

View File

@ -86,8 +86,10 @@ public:
if( ent->fpid == m_parent->m_currentFPID ) if( ent->fpid == m_parent->m_currentFPID )
{ {
wxCommandEvent event( wxEVT_COMMAND_TEXT_UPDATED, 1 ); auto handler = m_parent->GetEventHandler();
m_parent->GetEventHandler()->AddPendingEvent ( event );
if( handler )
handler->QueueEvent( new wxCommandEvent( wxEVT_COMMAND_TEXT_UPDATED, 1 ) );
} }
} else { } else {