Fix possible threadsafety issue in FOOTPRINT_PREVIEW_PANEL
This commit is contained in:
parent
82f587f4ff
commit
a73abbfc31
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue