diff options
author | rowanbeentje <rowan@beent.je> | 2008-12-10 01:50:52 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2008-12-10 01:50:52 +0000 |
commit | feede753b44f9253b58f042e2281dcb1e6bb0caa (patch) | |
tree | a78d5db85b4777bc015f69a6c5d0cfbbc388cd57 /TablesList.m | |
parent | 5a57ab32d28a9c2b3538a73f2fd965558a39abe1 (diff) | |
download | sequelpro-788c9df42dd43144916a81eb892c2d158d99efbd.tar.gz sequelpro-788c9df42dd43144916a81eb892c2d158d99efbd.tar.bz2 sequelpro-788c9df42dd43144916a81eb892c2d158d99efbd.zip |
- Merge in trunk fixes and improvements up to r254release-0.9.3
- Update Info.plist revision numbers to 254
Diffstat (limited to 'TablesList.m')
-rw-r--r-- | TablesList.m | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/TablesList.m b/TablesList.m index 500ac349..40ea87c5 100644 --- a/TablesList.m +++ b/TablesList.m @@ -543,12 +543,12 @@ traps enter and esc and edit/cancel without entering next row } } -/* -loads a table in content or source view (if tab selected) -*/ +/** + * Loads a table in content or source view (if tab selected) + */ - (void)tableViewSelectionDidChange:(NSNotification *)aNotification { - if ( [tablesListView numberOfSelectedRows] == 1 ) { + if ( [tablesListView numberOfSelectedRows] == 1 ) { if ( [tabView indexOfTabViewItem:[tabView selectedTabViewItem]] == 0 ) { [tableSourceInstance loadTable:[tables objectAtIndex:[tablesListView selectedRow]]]; structureLoaded = YES; @@ -575,6 +575,10 @@ loads a table in content or source view (if tab selected) [tableWindow setTitle:[NSString stringWithFormat:@"(MySQL %@) %@@%@/%@/%@", [tableDocumentInstance mySQLVersion], [tableDocumentInstance user], [tableDocumentInstance host], [tableDocumentInstance database], [tables objectAtIndex:[tablesListView selectedRow]]]]; + // Update connection characater set encoding based on the table's encoding if required + if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"encoding"] isEqualToString:@"Autodetect"]) { + [tableDocumentInstance detectTableEncodingForTable:[tables objectAtIndex:[tablesListView selectedRow]]]; + } } else { [tableSourceInstance loadTable:nil]; [tableContentInstance loadTable:nil]; @@ -589,8 +593,6 @@ loads a table in content or source view (if tab selected) } } - - - (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(int)rowIndex { return (rowIndex != 0); |