Browse Source
EDA_BASE_FRAME::windowClosing( wxCloseEvent& event ): fix incorrect behavior.
EDA_BASE_FRAME::windowClosing( wxCloseEvent& event ): fix incorrect behavior.
windowClosing() calls Destroy() when the wxCloseEvent has no veto. This is fine for usual EDA_BASE_FRAME frames, but not for frames shown in modal mode. In modal mode, windowClosing() should not call Destroy(), because the calling frame expects the instance not deleted after closing. (the caller has to call Destroy() only once the frame can be actually deleted)pull/16/head
6 changed files with 50 additions and 42 deletions
-
7common/eda_base_frame.cpp
-
8include/eda_base_frame.h
-
2include/kiway_player.h
-
68pcbnew/footprint_editor_utils.cpp
-
5pcbnew/footprint_wizard_frame.cpp
-
2pcbnew/footprint_wizard_frame.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue