Properly invert the BOOLs for the quit confirmations. Fixes #12817.
1.1 --- a/Source/AIConfirmationsAdvancedPreferences.m Fri Oct 16 09:56:21 2009 -0400
1.2 +++ b/Source/AIConfirmationsAdvancedPreferences.m Fri Oct 16 11:21:50 2009 -0400
1.3 @@ -53,9 +53,9 @@
1.4
1.5 [checkBox_confirmBeforeQuitting setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT] boolValue]];
1.6 [matrix_quitConfirmType selectCellWithTag:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_TYPE] integerValue]];
1.7 - [checkBox_quitConfirmFT setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_FT] boolValue]];
1.8 - [checkBox_quitConfirmOpenChats setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_OPEN] boolValue]];
1.9 - [checkBox_quitConfirmUnread setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_UNREAD] boolValue]];
1.10 + [checkBox_quitConfirmFT setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_FT] boolValue]];
1.11 + [checkBox_quitConfirmOpenChats setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_OPEN] boolValue]];
1.12 + [checkBox_quitConfirmUnread setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_UNREAD] boolValue]];
1.13
1.14 [checkBox_confirmBeforeClosing setState:[[confirmationDict objectForKey:KEY_CONFIRM_MSG_CLOSE] boolValue]];
1.15 [matrix_closeConfirmType selectCellWithTag:[[confirmationDict objectForKey:KEY_CONFIRM_MSG_CLOSE_TYPE] integerValue]];
1.16 @@ -81,19 +81,19 @@
1.17 }
1.18
1.19 if (sender == checkBox_quitConfirmFT) {
1.20 - [adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
1.21 + [adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
1.22 forKey:KEY_CONFIRM_QUIT_FT
1.23 group:PREF_GROUP_CONFIRMATIONS];
1.24 }
1.25
1.26 if (sender == checkBox_quitConfirmUnread) {
1.27 - [adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
1.28 + [adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
1.29 forKey:KEY_CONFIRM_QUIT_UNREAD
1.30 group:PREF_GROUP_CONFIRMATIONS];
1.31 }
1.32
1.33 if (sender == checkBox_quitConfirmOpenChats) {
1.34 - [adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
1.35 + [adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
1.36 forKey:KEY_CONFIRM_QUIT_OPEN
1.37 group:PREF_GROUP_CONFIRMATIONS];
1.38 }