diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-21 14:15:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-21 14:15:33 +0000 |
commit | 0d1fff4494127c5676067c2c9bef597e7bc0ca94 (patch) | |
tree | edbe8b8772bed7123ca129c030e4ae841286e183 /Source/TableDocument.m | |
parent | d1af3d55bace5a74766d29da0c72665989038067 (diff) | |
download | sequelpro-0d1fff4494127c5676067c2c9bef597e7bc0ca94.tar.gz sequelpro-0d1fff4494127c5676067c2c9bef597e7bc0ca94.tar.bz2 sequelpro-0d1fff4494127c5676067c2c9bef597e7bc0ca94.zip |
• added call to update the completion list to neuralgic places
- next steps to minimize the traffic - ie manipulating the dict directly without querying - follows
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 8d9bdca7..d0410044 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1143,12 +1143,20 @@ if ([contextInfo isEqualToString:@"removeDatabase"]) { if (returnCode == NSAlertDefaultReturn) { [self _removeDatabase]; + + // Query the structure of all databases in the background (mainly for completion) + [NSThread detachNewThreadSelector:@selector(queryDbStructure) toTarget:mySQLConnection withObject:nil]; + } } // Add a new database else if ([contextInfo isEqualToString:@"addDatabase"]) { if (returnCode == NSOKButton) { [self _addDatabase]; + + // Query the structure of all databases in the background (mainly for completion) + [NSThread detachNewThreadSelector:@selector(queryDbStructure) toTarget:mySQLConnection withObject:nil]; + } else { // reset chooseDatabaseButton if([[self database] length]) |