From ca0849b96828030fb958a6e62ca249697a3ad846 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Tue, 21 Jul 2015 09:28:19 -0400 Subject: [PATCH] Pcbnew: fix default button while in text edit control on Linux in footprint text edit dialog. --- pcbnew/dialogs/dialog_edit_module_text.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_edit_module_text.cpp b/pcbnew/dialogs/dialog_edit_module_text.cpp index aa73c9fcfb..03ecc1fd52 100644 --- a/pcbnew/dialogs/dialog_edit_module_text.cpp +++ b/pcbnew/dialogs/dialog_edit_module_text.cpp @@ -75,10 +75,7 @@ DialogEditModuleText::DialogEditModuleText( PCB_BASE_FRAME* aParent, initDlg(); - wxButton* okButton = (wxButton*) FindWindowById( wxID_OK ); - - if( okButton ) - SetDefaultItem( okButton ); + m_sdbSizer1OK->SetDefault(); GetSizer()->Fit( this ); GetSizer()->SetSizeHints( this );