Fix default button and focus for ModEdit save.
Fixes: lp:1752546 * https://bugs.launchpad.net/kicad/+bug/1752546
This commit is contained in:
parent
c7cc795095
commit
f1b48eb4f4
|
@ -65,6 +65,8 @@ EDA_LIST_DIALOG::EDA_LIST_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aTitl
|
||||||
|
|
||||||
m_filterBox->SetFocus();
|
m_filterBox->SetFocus();
|
||||||
|
|
||||||
|
m_sdbSizerOK->SetDefault();
|
||||||
|
|
||||||
// this line fixes an issue on Linux Ubuntu using Unity (dialog not shown),
|
// this line fixes an issue on Linux Ubuntu using Unity (dialog not shown),
|
||||||
// and works fine on all systems
|
// and works fine on all systems
|
||||||
GetSizer()->Fit( this );
|
GetSizer()->Fit( this );
|
||||||
|
|
|
@ -728,6 +728,8 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary( wxString activeLibrary, MODUL
|
||||||
if( dlg.GetChildren().DeleteObject( nameTextCtrl ) )
|
if( dlg.GetChildren().DeleteObject( nameTextCtrl ) )
|
||||||
dlg.GetChildren().Insert( nameTextCtrl );
|
dlg.GetChildren().Insert( nameTextCtrl );
|
||||||
|
|
||||||
|
nameTextCtrl->SetFocus();
|
||||||
|
|
||||||
dlg.Layout();
|
dlg.Layout();
|
||||||
mainSizer->Fit( &dlg );
|
mainSizer->Fit( &dlg );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue