Fix incorrect (missing) initialisation of m_cur_grid in symbols libraries table dialog box

This commit is contained in:
Jean-Samuel Reynaud 2017-08-30 19:36:03 +02:00 committed by Maciej Suminski
parent 3ac87f6969
commit 21c104fcc7
1 changed files with 6 additions and 0 deletions

View File

@ -202,9 +202,15 @@ DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE( wxTopLevelWindow* aParent,
// for ALT+A handling, we want the initial focus to be on the first selected grid.
if( m_pageNdx == 0 )
{
m_global_grid->SetFocus();
m_cur_grid = m_global_grid;
}
else
{
m_project_grid->SetFocus();
m_cur_grid = m_project_grid;
}
// On some window managers (Unity, XFCE), this dialog is
// not always raised, depending on this dialog is run.