Ticket #715: colloquy_715.2.patch

File colloquy_715.2.patch, 1.5 KB (added by Gurpartap Singh, 3 years ago)
  • Controllers/JVChatWindowController.m

     
    253253} 
    254254 
    255255- (IBAction) closeCurrentPanel:(id) sender { 
     256    if( [[NSUserDefaults standardUserDefaults] boolForKey:@"JVConfirmBeforeLeavingAChatRoom"] == 1 ) { 
     257    if( NSRunCriticalAlertPanelRelativeToWindow( NSLocalizedString( @"Are you sure you want to part from current chat room?", "are you sure you want to part current chat room dialog title" ), NSLocalizedString( @"You will exit from current room and lose any unsaved chat transcripts. Do you want to proceed?", "confirm close of part message" ), NSLocalizedString( @"Close", "close button" ), NSLocalizedString( @"Cancel", "close button" ), nil, [self window] ) == NSCancelButton ) 
     258        return; 
     259    } 
     260 
    256261    if( [[self allChatViewControllers] count] == 1 ) [[self window] performClose:sender]; 
    257262    else [[JVChatController defaultController] disposeViewController:_activeViewController]; 
    258263} 
  • Resources/info.colloquy.plist

     
    3030    <true/> 
    3131    <key>JVEnableAutomaticSoftwareUpdateCheck</key> 
    3232    <true/> 
     33    <key>JVConfirmBeforeLeavingAChatRoom</key> 
     34    <true/> 
    3335    <key>JVChatSpellChecking</key> 
    3436    <true/> 
    3537    <key>JVChatMaximumHistory</key>