Recreate menu bar after changing hotkeys

This commit is contained in:
Chris Pavlina 2016-01-15 20:56:23 -05:00 committed by Chris Pavlina
parent 2e4bb307dc
commit 9663060f97
1 changed files with 5 additions and 0 deletions

View File

@ -337,12 +337,17 @@ bool DIALOG_EESCHEMA_OPTIONS::TransferDataFromWindow()
if( !m_hotkeyListCtrl->TransferDataFromControl() )
return false;
// Refresh hotkeys
GetParent()->ReCreateMenuBar();
GetParent()->Refresh();
for( int row = 0; row < m_fieldGrid->GetNumberRows(); ++row )
{
templateFields[row].m_Name = m_fieldGrid->GetCellValue( row, 0 );
templateFields[row].m_Value = m_fieldGrid->GetCellValue( row, 1 );
templateFields[row].m_Visible = ( m_fieldGrid->GetCellValue( row, 2 ) != wxEmptyString );
}
return true;
}