aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-09 15:38:34 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-09 15:38:34 +0000
commitd4ef8601fd21fb9044fd01623d6afe958aa6d300 (patch)
tree8c3b97ab30dccf0f50fec295d852b583be07dc7c /Source/SPTableStructure.m
parentda8879c2d94f6f849cec202972e0bb595ff5865f (diff)
downloadsequelpro-d4ef8601fd21fb9044fd01623d6afe958aa6d300.tar.gz
sequelpro-d4ef8601fd21fb9044fd01623d6afe958aa6d300.tar.bz2
sequelpro-d4ef8601fd21fb9044fd01623d6afe958aa6d300.zip
• Structure
- reset collation if encoding was changed
Diffstat (limited to 'Source/SPTableStructure.m')
-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]];
}