Ticket #261: colloquy_patch.diff
| File colloquy_patch.diff, 1.1 kB (added by prophile, 8 months ago) |
|---|
-
Controllers/MVApplicationController.m
old new 445 445 return NSTerminateNow; // no active connections, we can just quit now 446 446 if( ! [[[JVChatController defaultController] chatViewControllersKindOfClass:[JVDirectChatPanel class]] count] ) 447 447 return NSTerminateNow; // no active chats, we can just quit now 448 if( [[NSUserDefaults standardUserDefaults] boolForKey:@"JVAlwaysTerminateWithoutConfirm"] ) 449 return NSTerminateNow; // user wants never to be asked, their wish is my command 448 450 if( NSRunCriticalAlertPanel( NSLocalizedString( @"Are you sure you want to quit?", "are you sure you want to quit title" ), NSLocalizedString( @"Are you sure you want to quit Colloquy and disconnect from all active connections?", "are you sure you want to quit message" ), NSLocalizedString( @"Quit", "quit button" ), NSLocalizedString( @"Cancel", "cancel button" ), nil ) == NSCancelButton ) 449 451 return NSTerminateCancel; 450 452 return NSTerminateNow;
