Fix copy/paste errors in delayedFocusRow stuff.
Fixes: lp:1802907 * https://bugs.launchpad.net/kicad/+bug/1802907
This commit is contained in:
parent
c15c64e991
commit
fdff010199
|
@ -567,6 +567,7 @@ bool DIALOG_FOOTPRINT_BOARD_EDITOR::Validate()
|
|||
if( m_NoteBook->GetSelection() != 0 )
|
||||
m_NoteBook->SetSelection( 0 );
|
||||
|
||||
m_delayedFocusGrid = m_itemsGrid;
|
||||
m_delayedErrorMessage = _( "Text items must have some content." );
|
||||
m_delayedFocusColumn = TMC_TEXT;
|
||||
m_delayedFocusRow = i;
|
||||
|
@ -832,7 +833,7 @@ void DIALOG_FOOTPRINT_BOARD_EDITOR::OnUpdateUI( wxUpdateUIEvent& )
|
|||
m_delayedFocusColumn = -1;
|
||||
m_delayedErrorMessage = wxEmptyString;
|
||||
|
||||
if( !m_delayedErrorMessage.IsEmpty() )
|
||||
if( !msg.IsEmpty() )
|
||||
{
|
||||
// Do not use DisplayErrorMessage(); it screws up window order on Mac
|
||||
DisplayError( nullptr, msg );
|
||||
|
|
|
@ -520,6 +520,7 @@ bool DIALOG_FOOTPRINT_FP_EDITOR::Validate()
|
|||
m_NoteBook->SetSelection( 0 );
|
||||
|
||||
m_delayedErrorMessage = _( "Text items must have some content." );
|
||||
m_delayedFocusGrid = m_itemsGrid;
|
||||
m_delayedFocusColumn = TMC_TEXT;
|
||||
m_delayedFocusRow = i;
|
||||
|
||||
|
|
Loading…
Reference in New Issue