aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserManager.m
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2009-08-11 22:34:28 +0000
committermltownsend <mltownsend@gmail.com>2009-08-11 22:34:28 +0000
commit9c4f6b6fd05acc7e10ac50ddf66eb25f5cf9344f (patch)
treef8b3eb673e74029ae407a5a32f131a2a49bb72cd /Source/SPUserManager.m
parent3a011f58742e4b3ea830501a5303a2c37f072151 (diff)
downloadsequelpro-9c4f6b6fd05acc7e10ac50ddf66eb25f5cf9344f.tar.gz
sequelpro-9c4f6b6fd05acc7e10ac50ddf66eb25f5cf9344f.tar.bz2
sequelpro-9c4f6b6fd05acc7e10ac50ddf66eb25f5cf9344f.zip
Fix problem with opening and reopening connections
Diffstat (limited to 'Source/SPUserManager.m')
-rw-r--r--Source/SPUserManager.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 000880ee..e44c9e51 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -102,8 +102,9 @@
[imageAndTextCell setEditable:NO];
[tableColumn setDataCell:imageAndTextCell];
-
- [NSThread detachNewThreadSelector:@selector(_initializeUsers) toTarget:self withObject:nil];
+
+ [self _initializeUsers];
+// [NSThread detachNewThreadSelector:@selector(_initializeUsers) toTarget:self withObject:nil];
[window makeKeyAndOrderFront:nil];
}
@@ -497,6 +498,11 @@
}
}
+- (void)windowWillClose:(NSNotification *)notification
+{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+}
+
- (BOOL)updateUsers:(NSArray *)updatedUsers
{
for (NSManagedObject *user in updatedUsers) {