diff options
-rw-r--r-- | src/mir_app/src/menu_clist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/menu_clist.cpp b/src/mir_app/src/menu_clist.cpp index 18afbc785a..273cf5e7b4 100644 --- a/src/mir_app/src/menu_clist.cpp +++ b/src/mir_app/src/menu_clist.cpp @@ -955,6 +955,9 @@ void RebuildMenuOrder(void) static int sttRebuildHotkeys(WPARAM, LPARAM)
{
for (int j = 0; j < _countof(statusModeList); j++) {
+ if (hStatusMainMenuHandles[j] == NULL)
+ continue;
+
TCHAR buf[256], hotkeyName[100];
WORD hotKey = GetHotkeyValue(statusHotkeys[j]);
HotkeyToName(hotkeyName, _countof(hotkeyName), HIBYTE(hotKey), LOBYTE(hotKey));
|