citra-qt: Add /default parsing for hotkeys. Also minor code cleanups.

This commit is contained in:
Adityarup Laha
2019-01-25 20:42:49 +05:30
parent 71f36efd27
commit 80ebd75285
12 changed files with 67 additions and 74 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ void HotkeyRegistry::LoadHotkeys() {
Hotkey& hk = hotkey_groups[shortcut.group][shortcut.name];
if (!shortcut.shortcut.first.isEmpty()) {
hk.keyseq = QKeySequence::fromString(shortcut.shortcut.first, QKeySequence::NativeText);
hk.context = (Qt::ShortcutContext)shortcut.shortcut.second;
hk.context = static_cast<Qt::ShortcutContext>(shortcut.shortcut.second);
}
if (hk.shortcut) {
hk.shortcut->disconnect();