aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Framework/MASShortcutMonitor.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Framework/MASShortcutMonitor.m b/Framework/MASShortcutMonitor.m
index cb89ce1..099f4b1 100644
--- a/Framework/MASShortcutMonitor.m
+++ b/Framework/MASShortcutMonitor.m
@@ -54,7 +54,9 @@ static OSStatus MASCarbonEventCallback(EventHandlerCallRef, EventRef, void*);
- (void) unregisterShortcut: (MASShortcut*) shortcut
{
- [_hotKeys removeObjectForKey:shortcut];
+ if (shortcut) {
+ [_hotKeys removeObjectForKey:shortcut];
+ }
}
- (void) unregisterAllShortcuts