diff options
author | Max <post@wickenrode.com> | 2015-09-20 20:36:17 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-20 20:36:17 +0200 |
commit | 1830a824116f569c6e5ab75116b30cbab4309885 (patch) | |
tree | a91141bdc4aa68ed2a5b6b74b94559a627bc5bf8 | |
parent | aa192cfe24c2866554d8785152e045f42233f287 (diff) | |
download | sequelpro-1830a824116f569c6e5ab75116b30cbab4309885.tar.gz sequelpro-1830a824116f569c6e5ab75116b30cbab4309885.tar.bz2 sequelpro-1830a824116f569c6e5ab75116b30cbab4309885.zip |
A little experimenting with #2218
-rw-r--r-- | Source/SPTableContent.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 89a73138..2b185bca 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -407,9 +407,6 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper // Reset table key store for use in argumentForRow: if (keys) SPClear(keys); - // Reset data column store - [dataColumns removeAllObjects]; - // Check the supplied table name. If it matches the old one, a reload is being performed; // reload the data in-place to maintain table state if possible. if ([selectedTable isEqualToString:newTableName]) { @@ -433,6 +430,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper [tableContentView deselectAll:self]; // Restore the table content view to the top left + // Note: This may cause the table view to reload it's data! [tableContentView scrollRowToVisible:0]; [tableContentView scrollColumnToVisible:0]; @@ -440,6 +438,9 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper maxNumRows = [[tableDataInstance statusValueForKey:@"Rows"] integerValue]; maxNumRowsIsEstimate = YES; } + + // Reset data column store + [dataColumns removeAllObjects]; // If no table has been supplied, reset the view to a blank table and disabled elements. if (!newTableName) { |