Permalink
Browse files

refactoring

  • Loading branch information...
1 parent 87ba13b commit 6fe953909bf47fc88810f6d27f12b90319b61de9 @psychs psychs committed Nov 29, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 Classes/Controllers/LimeChatApplication.m
@@ -25,8 +25,9 @@ - (void)sendEvent:(NSEvent *)e
{
if ([e type] == 14 && [e subtype] == 6) {
if (hotkey && [hotkey enabled]) {
- if ([[self delegate] respondsToSelector:@selector(applicationDidReceiveHotKey:)]) {
- [[self delegate] applicationDidReceiveHotKey:self];
+ id delegate = [self delegate];
+ if ([delegate respondsToSelector:@selector(applicationDidReceiveHotKey:)]) {
+ [delegate applicationDidReceiveHotKey:self];
}
}
}

0 comments on commit 6fe9539

Please sign in to comment.