Skip to content

Commit

Permalink
Fix for CPMenuItem dieing with nil keyEquivalent.
Browse files Browse the repository at this point in the history
[cappuccino#153 state:resolved]

Reviewed by me.
  • Loading branch information
Francisco Tolmasky committed Dec 3, 2008
1 parent ce696a5 commit 72375fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AppKit/CPMenuItem.j
Expand Up @@ -94,7 +94,7 @@

_state = CPOffState;

_keyEquivalent = aKeyEquivalent;
_keyEquivalent = aKeyEquivalent || @"";
_keyEquivalentModifierMask = CPPlatformActionKeyMask;

_mnemonicLocation = CPNotFound;
Expand Down Expand Up @@ -505,7 +505,7 @@
*/
- (void)setKeyEquivalent:(CPString)aString
{
_keyEquivalent = aString;
_keyEquivalent = aString || @"";
}

/*!
Expand Down

0 comments on commit 72375fe

Please sign in to comment.