summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/hotkeys.cpp b/src/mir_app/src/hotkeys.cpp
index 8830f38693..2dfaaed5fe 100644
--- a/src/mir_app/src/hotkeys.cpp
+++ b/src/mir_app/src/hotkeys.cpp
@@ -238,7 +238,7 @@ static INT_PTR svcHotkeyUnregister(WPARAM, LPARAM lParam)
if (g_hwndHkOptions)
SendMessage(g_hwndHkOptions, WM_HOTKEYUNREGISTERED, 0, 0);
- for (int i = hotkeys.getCount()-1; i >= 0; i++)
+ for (int i = hotkeys.getCount()-1; i >= 0; i--)
if (hotkeys[i]->UnregisterHotkey) {
FreeHotkey(hotkeys[i]);
hotkeys.remove(i);