adium 3310:72ccf4b32d4d: Open restored chats in the next run loop.
commits at adium.im
commits at adium.im
Sat Sep 18 18:06:42 UTC 2010
details: http://hg.adium.im/adium/rev/72ccf4b32d4d
revision: 3310:72ccf4b32d4d
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
(transplanted from 4e662991ffc879e608ca3e7555b4a76c333b9134)
diffs (21 lines):
diff -r 5297a5921cad -r 72ccf4b32d4d Source/AIInterfaceController.m
--- a/Source/AIInterfaceController.m Fri Sep 17 16:17:33 2010 -0500
+++ b/Source/AIInterfaceController.m Fri Sep 17 23:03:43 2010 -0400
@@ -316,7 +316,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.
@@ -455,7 +455,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