Made BOM editor dialog quasi modal

This commit is contained in:
danngreen 2017-06-01 13:08:17 -07:00 committed by Wayne Stambaugh
parent 0e71686bfd
commit a18d72b5d6
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,7 @@
int InvokeDialogCreateBOMEditor( SCH_EDIT_FRAME* aCaller ) int InvokeDialogCreateBOMEditor( SCH_EDIT_FRAME* aCaller )
{ {
DIALOG_BOM_EDITOR dlg( aCaller ); DIALOG_BOM_EDITOR dlg( aCaller );
return dlg.ShowModal(); return dlg.ShowQuasiModal();
} }
DIALOG_BOM_EDITOR::DIALOG_BOM_EDITOR( SCH_EDIT_FRAME* parent ) : DIALOG_BOM_EDITOR::DIALOG_BOM_EDITOR( SCH_EDIT_FRAME* parent ) :
@ -129,6 +129,7 @@ bool DIALOG_BOM_EDITOR::CloseDialog()
{ {
if( !m_bom->HaveFieldsChanged() ) if( !m_bom->HaveFieldsChanged() )
{ {
EndQuasiModal( wxID_CANCEL );
Destroy(); Destroy();
return true; return true;
} }
@ -146,6 +147,7 @@ bool DIALOG_BOM_EDITOR::CloseDialog()
break; break;
} }
EndQuasiModal( wxID_CANCEL );
Destroy(); Destroy();
return true; return true;
} }