adium 5372:fd237533ed4e: I'm not sure why this is necessary (und...
commits at adium.im
commits at adium.im
Tue Mar 5 11:28:50 UTC 2013
details: http://hg.adium.im/adium/rev/fd237533ed4e
revision: 5372:fd237533ed4e
branch: adium-1.5.6
author: Thijs Alkemade <me at thijsalkema.de>
date: Tue Mar 05 12:28:37 2013 +0100
I'm not sure why this is necessary (undocumented AppKit change?), but -setIntValue for NSControl seems to add a thousands separator to port numbers suddenly (port "5.222"). Format the port number as a string first, then set that.
Fixes #16294
diffs (12 lines):
diff -r 79c44052280a -r fd237533ed4e Frameworks/Adium Framework/Source/AIAccountViewController.m
--- a/Frameworks/Adium Framework/Source/AIAccountViewController.m Mon Mar 04 21:53:45 2013 +0100
+++ b/Frameworks/Adium Framework/Source/AIAccountViewController.m Tue Mar 05 12:28:37 2013 +0100
@@ -228,7 +228,7 @@
//Server Port
NSNumber *port = [account preferenceForKey:KEY_CONNECT_PORT group:GROUP_ACCOUNT_STATUS];
if (port) {
- [textField_connectPort setIntValue:[port intValue]];
+ [textField_connectPort setStringValue:[NSString stringWithFormat:@"%d", [port intValue]]];
} else {
[textField_connectPort setStringValue:@""];
}
More information about the commits
mailing list