aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataImport.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-14 22:07:03 +0000
committerrowanbeentje <rowan@beent.je>2012-03-14 22:07:03 +0000
commit76a070a62a076481dddfb5e5a7d8ca6de5ea64a4 (patch)
tree934026a83581bc4f78f6a0c6d5f4815adf082576 /Source/SPDataImport.m
parenta9f95273a69035e6be8249a42322350df695870f (diff)
downloadsequelpro-76a070a62a076481dddfb5e5a7d8ca6de5ea64a4.tar.gz
sequelpro-76a070a62a076481dddfb5e5a7d8ca6de5ea64a4.tar.bz2
sequelpro-76a070a62a076481dddfb5e5a7d8ca6de5ea64a4.zip
More bugfixes to the SPMySQL integration branch:
- Fix background database structure checks throwing exceptions at the end of certain table operations - Fix incorrect timer access/overrelease when closing a SPNarrowDownCompletion window when database structure fetching is active
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r--Source/SPDataImport.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index e0917858..58d132ce 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -672,7 +672,7 @@
[tablesListInstance updateTables:self];
// Re-query the structure of all databases in the background
- [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];
+ [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:[tableDocumentInstance databaseStructureRetrieval] withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];
// Import finished Growl notification
[[SPGrowlController sharedGrowlController] notifyWithTitle:@"Import Finished"
@@ -1194,7 +1194,7 @@
[tablesListInstance performSelectorOnMainThread:@selector(updateTables:) withObject:self waitUntilDone:YES];
// Re-query the structure of all databases in the background
- [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];
+ [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:[tableDocumentInstance databaseStructureRetrieval] withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];
// Select the new table
[tablesListInstance selectItemWithName:selectedTableTarget];