From 0ce7f983fad694c57aff9217666435685dea5e05 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 10 Nov 2009 00:22:43 +0000 Subject: - Fix an issue when switching databases - allow the table selection to be cleared/reset as necessary - Move the task progress layer to a child window, which can then be faded in - smooths the visual appearance and fixes drawing artifacts --- Source/TablesList.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/TablesList.m') diff --git a/Source/TablesList.m b/Source/TablesList.m index fbbd412c..5bba8be5 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -63,6 +63,7 @@ int i; NSString *previousSelectedTable = nil; NSInteger selectedRowIndex; + BOOL previousTableListIsSelectable = tableListIsSelectable; selectedRowIndex = [tablesListView selectedRow]; @@ -76,7 +77,9 @@ } tableListContainsViews = NO; + tableListIsSelectable = YES; [tablesListView deselectAll:self]; + tableListIsSelectable = previousTableListIsSelectable; [tables removeAllObjects]; [tableTypes removeAllObjects]; @@ -216,7 +219,9 @@ // if the previous selected table still exists, select it if( previousSelectedTable != nil && [tables indexOfObject:previousSelectedTable] < [tables count]) { int itemToReselect = [tables indexOfObject:previousSelectedTable]; + tableListIsSelectable = YES; [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:itemToReselect] byExtendingSelection:NO]; + tableListIsSelectable = previousTableListIsSelectable; if (selectedTableName) [selectedTableName release]; selectedTableName = [[NSString alloc] initWithString:[tables objectAtIndex:itemToReselect]]; selectedTableType = [[tableTypes objectAtIndex:itemToReselect] intValue]; -- cgit v1.2.3