adium-1.4 3027:4e662991ffc8: Open restored chats in the next run...

commits at adium.im commits at adium.im
Sat Sep 18 03:03:48 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/4e662991ffc8
revision:	3027:4e662991ffc8
author:		Zachary West <zacw at adium.im>
date:		Fri Sep 17 23:03:43 2010 -0400

Open restored chats in the next run loop.

For some reason SL breaks spaces if we open the message windows too fast.. or something. *shrug* I couldn't figure out a less hacky way to get it to work.

Fixes #12914

diffs (21 lines):

diff -r 98799eb3f5b9 -r 4e662991ffc8 Source/AIInterfaceController.m
--- a/Source/AIInterfaceController.m	Thu Sep 16 16:36:15 2010 -0500
+++ b/Source/AIInterfaceController.m	Fri Sep 17 23:03:43 2010 -0400
@@ -297,7 +297,7 @@
 		if (firstTime) {
 			if (saveContainers) {
 				//Restore saved containers
-				[self restoreSavedContainers];	
+				[self performSelector:@selector(restoreSavedContainers) withObject:nil afterDelay:0.0];
 			} else if ([prefDict objectForKey:KEY_CONTAINERS]) {
 				/* We've loaded without wanting to save containers; clear any saved
 				 * from a previous session.
@@ -436,7 +436,7 @@
 
 	for (NSDictionary *dict in [NSKeyedUnarchiver unarchiveObjectWithData:savedData]) {
 		AIMessageWindowController *windowController = [self openContainerWithID:[dict objectForKey:@"ID"]
-																 name:[dict objectForKey:@"Name"]];
+																		   name:[dict objectForKey:@"Name"]];
 		AIChat *containerActiveChat = nil;
 		
 		// Position the container where it was last saved (using -savedFrameFromString: to prevent going offscreen)




More information about the commits mailing list