aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/TablesList.m11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 35240e46..947c2f41 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1835,6 +1835,13 @@
*/
- (IBAction) updateFilter:(id)sender
{
+
+ // Don't try and maintain selections of multiple rows through filtering
+ if ([tablesListView numberOfSelectedRows] > 1) {
+ [tablesListView deselectAll:self];
+ if (selectedTableName) [selectedTableName release], selectedTableName = nil;
+ }
+
if ([[listFilterField stringValue] length]) {
if (isTableListFiltered) {
[filteredTables release];
@@ -1887,7 +1894,6 @@
[filteredTableTypes addObject:[NSNumber numberWithInt:selectedTableType]];
}
-// [self performSelector:@selector(selectTableAtIndex:) withObject:[NSNumber numberWithInt:[filteredTables indexOfObject:selectedTableName]] afterDelay:0.0];
isTableListFiltered = YES;
} else if (isTableListFiltered) {
isTableListFiltered = NO;
@@ -1895,9 +1901,6 @@
filteredTables = tables;
[filteredTableTypes release];
filteredTableTypes = tableTypes;
- if (selectedTableName) {
-// [self performSelector:@selector(selectTableAtIndex:) withObject:[NSNumber numberWithInt:[tables indexOfObject:selectedTableName]] afterDelay:0.0];
- }
}
// Reselect correct row and reload the table view display