Revert "Cvpcb: fix possible crash when pressing the ESC key during some calculations."
This reverts commit 99b242069d
because it does
not fix all cases.
This commit is contained in:
parent
99b242069d
commit
89f124595c
|
@ -176,6 +176,7 @@ void FOOTPRINTS_LISTBOX::SetFootprints( FOOTPRINT_LIST& aList, const wxString& a
|
||||||
selection = 0;
|
selection = 0;
|
||||||
|
|
||||||
DeselectAll();
|
DeselectAll();
|
||||||
|
wxSafeYield();
|
||||||
wxWindowUpdateLocker freeze( this );
|
wxWindowUpdateLocker freeze( this );
|
||||||
DeleteAllItems();
|
DeleteAllItems();
|
||||||
|
|
||||||
|
|
|
@ -85,14 +85,13 @@ bool CVPCB_MAINFRAME::ReadNetListAndFpFiles( const std::string& aNetlist )
|
||||||
wxString msg;
|
wxString msg;
|
||||||
bool hasMissingNicks = false;
|
bool hasMissingNicks = false;
|
||||||
|
|
||||||
// Remark: *DO NOT* call wxSafeYield() or wxYield() during these calculations,
|
|
||||||
// because a Close event (generated by the ESC key) can close some widgets during
|
|
||||||
// refreshing them here, fired by the wxSafeYield() call.
|
|
||||||
ReadSchematicNetlist( aNetlist );
|
ReadSchematicNetlist( aNetlist );
|
||||||
|
|
||||||
if( m_symbolsListBox == nullptr )
|
if( m_symbolsListBox == nullptr )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
wxSafeYield();
|
||||||
|
|
||||||
LoadFootprintFiles();
|
LoadFootprintFiles();
|
||||||
|
|
||||||
BuildFootprintsListBox();
|
BuildFootprintsListBox();
|
||||||
|
|
Loading…
Reference in New Issue