aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TableDocument.m9
1 files changed, 1 insertions, 8 deletions
diff --git a/TableDocument.m b/TableDocument.m
index 8ca7b0ae..2dcb5f1a 100644
--- a/TableDocument.m
+++ b/TableDocument.m
@@ -784,14 +784,7 @@ NSString *TableDocumentFavoritesControllerFavoritesDidChange = @"TableDocumentFa
if ([encodingComponents count] > 0) {
NSString *tableEncoding = [encodingComponents objectAtIndex:0];
- [mySQLConnection setEncoding:[CMMCPConnection encodingForMySQLEncoding:[tableEncoding UTF8String]]];
-
- // Save the encoding
- [_encoding autorelease];
- _encoding = [tableEncoding retain];
-
- // update the selected menu item
- [self updateEncodingMenuWithSelectedEncoding:[self encodingNameFromMySQLEncoding:tableEncoding]];
+ [self setEncoding:tableEncoding];
}
}
else {