diff options
author | Max <post@wickenrode.com> | 2015-04-22 22:30:57 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-04-22 22:30:57 +0200 |
commit | 75738e17389d9d66713fdde60cfd59774c934557 (patch) | |
tree | 77a7e78bd46ffc737d92939d20359761e26c5ea4 /Source/SPDatabaseDocument.m | |
parent | 55951d00cde44cfc654a2a6cb97e941eca2eb70f (diff) | |
download | sequelpro-75738e17389d9d66713fdde60cfd59774c934557.tar.gz sequelpro-75738e17389d9d66713fdde60cfd59774c934557.tar.bz2 sequelpro-75738e17389d9d66713fdde60cfd59774c934557.zip |
Fixed two case of background thread interacting with UI
aka "deleted uncommited CA transaction"
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 506e78f6..0b4abdb9 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4577,8 +4577,9 @@ static NSString *SPAlterDatabaseAction = @"SPAlterDatabase"; [sessionState setObject:[NSNumber numberWithBool:[tableContentInstance sortColumnIsAscending]] forKey:@"contentSortColIsAsc"]; [sessionState setObject:[NSNumber numberWithInteger:[tableContentInstance pageNumber]] forKey:@"contentPageNumber"]; [sessionState setObject:NSStringFromRect([tableContentInstance viewport]) forKey:@"contentViewport"]; - if ([tableContentInstance filterSettings]) - [sessionState setObject:[tableContentInstance filterSettings] forKey:@"contentFilter"]; + NSDictionary *filterSettings = [tableContentInstance filterSettings]; + if (filterSettings) + [sessionState setObject:filterSettings forKey:@"contentFilter"]; NSDictionary *contentSelectedRows = [tableContentInstance selectionDetailsAllowingIndexSelection:YES]; if (contentSelectedRows) { |