adium 4591:6810abfa78bc: I think this way is better, to avoid sa...

commits at adium.im commits at adium.im
Sun Jan 29 14:49:57 UTC 2012


details:	http://hg.adium.im/adium/rev/6810abfa78bc
revision:	4591:6810abfa78bc
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Sun Jan 29 15:49:48 2012 +0100

I think this way is better, to avoid saving the frame of the sheet as if it were a window.

diffs (18 lines):

diff -r e20b41b6af3d -r 6810abfa78bc Plugins/Emoticons/AIEmoticonPreferences.m
--- a/Plugins/Emoticons/AIEmoticonPreferences.m	Sun Jan 29 15:47:25 2012 +0100
+++ b/Plugins/Emoticons/AIEmoticonPreferences.m	Sun Jan 29 15:49:48 2012 +0100
@@ -74,7 +74,13 @@
 - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
 {
 	[sheet orderOut:nil];
-	[sheet close];
+	
+	viewIsOpen = NO;
+	
+	[adium.preferenceController unregisterPreferenceObserver:self];
+    [adium.emoticonController flushEmoticonImageCache];
+	
+	[self autorelease];
 }
 
 //Configure the preference view




More information about the commits mailing list