diff options
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m index e784f862..3130d44f 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -616,6 +616,7 @@ */ - (void)updateSelectionWithTaskString:(NSString *)taskString { + if (![mySQLConnection isConnected]) return; // If there is a multiple or blank selection, clear all views directly. if ( [tablesListView numberOfSelectedRows] != 1 || ![(NSString *)[filteredTables objectAtIndex:[tablesListView selectedRow]] length] ) { @@ -644,7 +645,7 @@ } - (void) updateSelectionTask -{ +{ NSAutoreleasePool *selectionChangePool = [[NSAutoreleasePool alloc] init]; NSString *tableEncoding = nil; |