adium 4110:5f1064534b84: fix some issues with naming file transf...

commits at adium.im commits at adium.im
Wed Aug 3 03:33:47 UTC 2011


details:	http://hg.adium.im/adium/rev/5f1064534b84
revision:	4110:5f1064534b84
branch:		(none)
author:		Stephen Holt <sholt at adium.im>
date:		Tue Aug 02 20:25:58 2011 -0700

fix some issues with naming file transfer icons
(transplanted from 3e9dc0105233baf74fbcc558cfb44361d438859b)

diffs (12 lines):

diff -r 2679e525bcd8 -r 5f1064534b84 Plugins/WebKit Message View/AIWebkitMessageViewStyle.m
--- a/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Wed Aug 03 03:40:23 2011 +0200
+++ b/Plugins/WebKit Message View/AIWebkitMessageViewStyle.m	Tue Aug 02 20:25:58 2011 -0700
@@ -1342,7 +1342,7 @@
 
 - (NSString *)iconPathForFileTransfer:(ESFileTransfer *)inObject
 {
-	NSString	*filename = [NSString stringWithFormat:@"TEMP-%@%@.tiff", [inObject remoteFilename], [NSString randomStringOfLength:5]];
+	NSString	*filename = [NSString stringWithFormat:@"TEMP-%@%@.tiff", [inObject uniqueID], [NSString randomStringOfLength:5]];
 	return [[adium cachesPath] stringByAppendingPathComponent:filename];
 }
 




More information about the commits mailing list