Skip to content

Commit

Permalink
Cleanup variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Emdek committed Aug 6, 2024
1 parent 69f2490 commit 2cd2925
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/windows/preferences/InputPreferencesPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ void InputPreferencesPage::loadKeyboardDefinitions(const QString &identifier)

for (int i = 0; i < definitions.count(); ++i)
{
const int identifier(definitions.at(i).action);
const ActionsManager::ActionDefinition action(ActionsManager::getActionDefinition(identifier));
const QString name(ActionsManager::getActionName(identifier));
const KeyboardProfile::Action shortcutsDefinition(definitions.at(i));
const ActionsManager::ActionDefinition actionDefinition(ActionsManager::getActionDefinition(shortcutsDefinition.action));
const QString name(ActionsManager::getActionName(shortcutsDefinition.action));

addKeyboardShortcuts(m_keyboardShortcutsModel, identifier, name, action.getText(true), action.defaultState.icon, definitions.at(i).parameters, definitions.at(i).shortcuts, false);
addKeyboardShortcuts(m_keyboardShortcutsModel, identifier, name, action.getText(true), action.defaultState.icon, definitions.at(i).parameters, definitions.at(i).disabledShortcuts, true);
addKeyboardShortcuts(m_keyboardShortcutsModel, shortcutsDefinition.action, name, actionDefinition.getText(true), actionDefinition.defaultState.icon, shortcutsDefinition.parameters, shortcutsDefinition.shortcuts, false);
addKeyboardShortcuts(m_keyboardShortcutsModel, shortcutsDefinition.action, name, actionDefinition.getText(true), actionDefinition.defaultState.icon, shortcutsDefinition.parameters, shortcutsDefinition.disabledShortcuts, true);
}

m_keyboardShortcutsModel->sort(1);
Expand Down

0 comments on commit 2cd2925

Please sign in to comment.