Update fake hotkey action to new constructor
This commit is contained in:
parent
ba22347904
commit
49705a711e
|
@ -212,7 +212,7 @@ bool HOTKEY_STORE::CheckKeyConflicts( TOOL_ACTION* aAction, long aKey, HOTKEY**
|
|||
// Create a fake "TOOL_ACTION" so we can get the section name for "Common" through the API.
|
||||
// Simply declaring a wxString with the value "Common" works, but the goal is to futureproof
|
||||
// the code here as much as possible.
|
||||
TOOL_ACTION commonAction( "common.Control.Fake", AS_GLOBAL, 0, "", "", "" );
|
||||
TOOL_ACTION commonAction( TOOL_ACTION_ARGS().Name( "common.Control.Fake" ).Scope( AS_GLOBAL ) );
|
||||
wxString commonName = GetSectionName( &commonAction );
|
||||
|
||||
for( HOTKEY_SECTION& section : m_hk_sections )
|
||||
|
|
Loading…
Reference in New Issue