diff options
author | Max <post@wickenrode.com> | 2015-09-20 20:36:17 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-09-25 17:27:32 +0200 |
commit | 0bac1778a26487c3c2367d41ac2bbf2f18c25ee2 (patch) | |
tree | 1bbb959015d24c0d4934948e387ffcdf418aa533 | |
parent | 69375fa0b8266d6515598563c57cbb9fc6af20ed (diff) | |
download | sequelpro-0bac1778a26487c3c2367d41ac2bbf2f18c25ee2.tar.gz sequelpro-0bac1778a26487c3c2367d41ac2bbf2f18c25ee2.tar.bz2 sequelpro-0bac1778a26487c3c2367d41ac2bbf2f18c25ee2.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 48200d80..922534a8 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -409,9 +409,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]) { @@ -435,6 +432,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]; @@ -442,6 +440,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) { |