diff --git a/src/lime_qt/hotkeys.cpp b/src/lime_qt/hotkeys.cpp index 4750de493..465541a9f 100644 --- a/src/lime_qt/hotkeys.cpp +++ b/src/lime_qt/hotkeys.cpp @@ -33,7 +33,7 @@ void HotkeyRegistry::LoadHotkeys() { QKeySequence::fromString(shortcut.shortcut.keyseq, QKeySequence::NativeText); hk.context = static_cast(shortcut.shortcut.context); } - for(auto const& [_, hotkey_shortcut] : hk.shortcuts) { + for (auto const& [_, hotkey_shortcut] : hk.shortcuts) { if (hotkey_shortcut) { hotkey_shortcut->disconnect(); hotkey_shortcut->setKey(hk.keyseq); diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index ef014ac41..4bd97e1dc 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -656,7 +656,8 @@ void GMainWindow::InitializeHotkeys() { // QShortcut Hotkeys const auto connect_shortcut = [&](const QString& action_name, const auto& function) { const auto* hotkey = hotkey_registry.GetHotkey(main_window, action_name, this); - const auto* secondary_hotkey = hotkey_registry.GetHotkey(main_window, action_name, secondary_window); + const auto* secondary_hotkey = + hotkey_registry.GetHotkey(main_window, action_name, secondary_window); connect(hotkey, &QShortcut::activated, this, function); connect(secondary_hotkey, &QShortcut::activated, this, function); };