Use wxMessageBox instead of ASSERT for duplicate hotkey warnings.

This commit is contained in:
Jeff Young 2019-05-14 10:55:30 +01:00
parent e850592587
commit 06d64c7883
1 changed files with 5 additions and 4 deletions

View File

@ -213,10 +213,11 @@ void ACTION_MANAGER::UpdateHotKeys()
{ {
// Users are free to define colliding hotkeys, but we want to know if // Users are free to define colliding hotkeys, but we want to know if
// our default set has any collisions. // our default set has any collisions.
wxFAIL_MSG( wxString::Format( "Duplicate hotkey definitions for %s: %s and %s", wxMessageBox( wxString::Format(
KeyNameFromKeyCode( hotkey ), "Duplicate hotkey definitions for '%s': %s and %s",
actionName.first, KeyNameFromKeyCode( hotkey ),
m_actionHotKeys[hotkey].front()->GetName() ) ); actionName.first,
m_actionHotKeys[hotkey].front()->GetName() ) );
it = m_actionHotKeys[hotkey].erase( it ); it = m_actionHotKeys[hotkey].erase( it );
} }