adium-1.4 2622:e655af8e7a6f: Properly invert the BOOLs for the q...

commits at adium.im commits at adium.im
Fri Oct 16 15:22:27 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/e655af8e7a6f
revision:	2622:e655af8e7a6f
author:		Zachary West <zacw at adium.im>
date:		Fri Oct 16 11:21:50 2009 -0400

Properly invert the BOOLs for the quit confirmations. Fixes #12817.

diffs (39 lines):

diff -r f50210ffe03f -r e655af8e7a6f Source/AIConfirmationsAdvancedPreferences.m
--- a/Source/AIConfirmationsAdvancedPreferences.m	Fri Oct 16 11:14:37 2009 -0400
+++ b/Source/AIConfirmationsAdvancedPreferences.m	Fri Oct 16 11:21:50 2009 -0400
@@ -53,9 +53,9 @@
 
 	[checkBox_confirmBeforeQuitting setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT] boolValue]];
 	[matrix_quitConfirmType selectCellWithTag:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_TYPE] integerValue]];
-	[checkBox_quitConfirmFT setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_FT] boolValue]];
-	[checkBox_quitConfirmOpenChats setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_OPEN] boolValue]];
-	[checkBox_quitConfirmUnread setState:[[confirmationDict objectForKey:KEY_CONFIRM_QUIT_UNREAD] boolValue]];
+	[checkBox_quitConfirmFT setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_FT] boolValue]];
+	[checkBox_quitConfirmOpenChats setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_OPEN] boolValue]];
+	[checkBox_quitConfirmUnread setState:![[confirmationDict objectForKey:KEY_CONFIRM_QUIT_UNREAD] boolValue]];
 	
 	[checkBox_confirmBeforeClosing setState:[[confirmationDict objectForKey:KEY_CONFIRM_MSG_CLOSE] boolValue]];
 	[matrix_closeConfirmType selectCellWithTag:[[confirmationDict objectForKey:KEY_CONFIRM_MSG_CLOSE_TYPE] integerValue]];
@@ -81,19 +81,19 @@
 	}
 	
 	if (sender == checkBox_quitConfirmFT) {
-		[adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
+		[adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
 										   forKey:KEY_CONFIRM_QUIT_FT
 											group:PREF_GROUP_CONFIRMATIONS];
 	}
 	
 	if (sender == checkBox_quitConfirmUnread) {
-		[adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
+		[adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
 										   forKey:KEY_CONFIRM_QUIT_UNREAD
 											group:PREF_GROUP_CONFIRMATIONS];		
 	}
 	
 	if (sender == checkBox_quitConfirmOpenChats) {
-		[adium.preferenceController setPreference:[NSNumber numberWithBool:[sender state]]
+		[adium.preferenceController setPreference:[NSNumber numberWithBool:![sender state]]
 										   forKey:KEY_CONFIRM_QUIT_OPEN
 											group:PREF_GROUP_CONFIRMATIONS];
 	}




More information about the commits mailing list