Permalink
Browse files

terminate application soon after launch emacs unless setting panel is…

… not visible
  • Loading branch information...
1 parent b337d4c commit fc5195d62dbd8432268c9f4cf4e5a75e7d1b365b @typester typester committed Oct 31, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 Classes/App.m
View
@@ -36,6 +36,10 @@ -(void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSApple
}
}
}
+
+ if (![prefPanel isVisible]) {
+ [NSApp terminate:self];
+ }
}
-(IBAction)showPrefPanel:(id)sender {

0 comments on commit fc5195d

Please sign in to comment.