diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-10 13:01:29 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-10 13:01:29 +0000 |
commit | c3ec70ee0016f42b3e578724c929423046b0082c (patch) | |
tree | 1c6ae964f68b39b48fa82362eef2a8515786588f /Source/SPTableStructure.m | |
parent | 604a87cd43b634d977eee660081cd821965e8311 (diff) | |
download | sequelpro-c3ec70ee0016f42b3e578724c929423046b0082c.tar.gz sequelpro-c3ec70ee0016f42b3e578724c929423046b0082c.tar.bz2 sequelpro-c3ec70ee0016f42b3e578724c929423046b0082c.zip |
• TableStructure
- fixed monoSpacedFont for index table refresh and setting
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r-- | Source/SPTableStructure.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index 3dab7d92..f6af3b5a 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -81,6 +81,7 @@ // Set the strutcture and index view's font [tableSourceView setFont:([prefs boolForKey:SPUseMonospacedFonts]) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; + [indexesTableView setFont:([prefs boolForKey:SPUseMonospacedFonts]) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; typeSuggestions = [[NSArray arrayWithObjects: @"TINYINT", @@ -1069,12 +1070,11 @@ closes the keySheet BOOL useMonospacedFont = [[change objectForKey:NSKeyValueChangeNewKey] boolValue]; - for (NSTableColumn *fieldColumn in [tableSourceView tableColumns]) - { - [[fieldColumn dataCell] setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; - } + [tableSourceView setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; + [indexesTableView setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; [tableSourceView reloadData]; + [indexesTableView reloadData]; } } |