aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-12 11:13:57 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-12 11:13:57 +0000
commit2e69aacd95a1991c73e59f71a3f3809e64eb3fe3 (patch)
treeb307d27e59d8243836cb85210e56024bf31a8455 /Source/SPDatabaseDocument.m
parentcd588325f3843d7c2e246ad58a8a47d78236e35c (diff)
downloadsequelpro-2e69aacd95a1991c73e59f71a3f3809e64eb3fe3.tar.gz
sequelpro-2e69aacd95a1991c73e59f71a3f3809e64eb3fe3.tar.bz2
sequelpro-2e69aacd95a1991c73e59f71a3f3809e64eb3fe3.zip
• while closing a doc window or quitting the app wait for removing the connection structure data used by the Navigator/Completion List to avoid exceptions or crashes
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index c282b219..c26bce66 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -4212,7 +4212,7 @@
object:nil];
- [[SPNavigatorController sharedNavigatorController] removeConnection:[self connectionID]];
+ [[SPNavigatorController sharedNavigatorController] performSelectorOnMainThread:@selector(removeConnection:) withObject:[self connectionID] waitUntilDone:YES];
[mySQLConnection setDelegate:nil];
if (_isConnected) [self closeConnection];