Fix default button and focus for ModEdit save.

Fixes: lp:1752546
* https://bugs.launchpad.net/kicad/+bug/1752546
This commit is contained in:
Jeff Young 2018-03-09 00:49:46 +00:00
parent c7cc795095
commit f1b48eb4f4
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ EDA_LIST_DIALOG::EDA_LIST_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aTitl
m_filterBox->SetFocus();
m_sdbSizerOK->SetDefault();
// this line fixes an issue on Linux Ubuntu using Unity (dialog not shown),
// and works fine on all systems
GetSizer()->Fit( this );

View File

@ -728,6 +728,8 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary( wxString activeLibrary, MODUL
if( dlg.GetChildren().DeleteObject( nameTextCtrl ) )
dlg.GetChildren().Insert( nameTextCtrl );
nameTextCtrl->SetFocus();
dlg.Layout();
mainSizer->Fit( &dlg );