diff options
author | rowanbeentje <rowan@beent.je> | 2010-11-03 01:42:32 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-11-03 01:42:32 +0000 |
commit | 6d5927b835706d28ee8ec24254d7b5c19bf6e5fe (patch) | |
tree | ab9d3c93221afd14c0d1634a72437fb152ed129f /Source/SPDataImport.m | |
parent | e3b2ea1aa4b868db760d465e2a4319f86c475131 (diff) | |
download | sequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.tar.gz sequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.tar.bz2 sequelpro-6d5927b835706d28ee8ec24254d7b5c19bf6e5fe.zip |
Add a new category to SPDatabaseDocument, allowing code cleanup and moving central functionality out of SPTablesList:
- Centralise control over table loading, moving it away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category
- Centralise control over the main tab view, moving control away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category
- Simplify and clean up view loading logic
- Improve thread safety
- Update localisable strings
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r-- | Source/SPDataImport.m | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m index f7f3eb4c..dff20466 100644 --- a/Source/SPDataImport.m +++ b/Source/SPDataImport.m @@ -1120,11 +1120,7 @@ // If import was done into a new table or the table selected for import is also selected in the content view, // update the content view - on the main thread to avoid crashes. if ([tablesListInstance tableName] && [selectedTableTarget isEqualToString:[tablesListInstance tableName]]) { - if ([[tableDocumentInstance selectedToolbarItemIdentifier] isEqualToString:SPMainToolbarTableContent]) { - [tableContentInstance performSelectorOnMainThread:@selector(reloadTable:) withObject:nil waitUntilDone:YES]; - } else { - [tablesListInstance setContentRequiresReload:YES]; - } + [tableDocumentInstance setContentRequiresReload:YES]; } } |