aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableStructure.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index 16c01b6f..ce21b705 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -1290,6 +1290,14 @@ returns a dictionary containing enum/set field names as key and possible values
currentlyEditingRow = rowIndex;
}
+ // Reset collation if encoding was changed
+ if([[aTableColumn identifier] isEqualToString:@"encoding"]) {
+ if([[[tableFields objectAtIndex:rowIndex] objectForKey:@"encoding"] integerValue] != [anObject integerValue]) {
+ [[tableFields objectAtIndex:rowIndex] setObject:[NSNumber numberWithInteger:0] forKey:@"collation"];
+ [tableSourceView reloadData];
+ }
+ }
+
[[tableFields objectAtIndex:rowIndex] setObject:(anObject) ? anObject : @"" forKey:[aTableColumn identifier]];
}