eeschema: Fix initial selected text in reference value dialog
Fixes: lp:1834741 * https://bugs.launchpad.net/kicad/+bug/1834741
This commit is contained in:
parent
1633068920
commit
e32306c232
|
@ -122,6 +122,11 @@ void DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick( wxCommandEvent& aEvent
|
|||
|
||||
void DIALOG_EDIT_ONE_FIELD::OnSetFocusText( wxFocusEvent& event )
|
||||
{
|
||||
|
||||
// Force an update of the text control before setting the text selection
|
||||
// This is needed because GTK seems to ignore the selection on first update
|
||||
m_TextValue->Update();
|
||||
|
||||
if( m_fieldId == REFERENCE )
|
||||
SelectReferenceNumber( static_cast<wxTextEntry*>( m_TextValue ) );
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue