diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-09 15:38:34 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-09 15:38:34 +0000 |
commit | d4ef8601fd21fb9044fd01623d6afe958aa6d300 (patch) | |
tree | 8c3b97ab30dccf0f50fec295d852b583be07dc7c /Source/SPTableStructure.m | |
parent | da8879c2d94f6f849cec202972e0bb595ff5865f (diff) | |
download | sequelpro-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.m | 8 |
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]]; } |