diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-08-12 11:13:57 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-08-12 11:13:57 +0000 |
commit | 2e69aacd95a1991c73e59f71a3f3809e64eb3fe3 (patch) | |
tree | b307d27e59d8243836cb85210e56024bf31a8455 /Source | |
parent | cd588325f3843d7c2e246ad58a8a47d78236e35c (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/SPDatabaseDocument.m | 2 |
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]; |