diff options
author | stuconnolly <stuart02@gmail.com> | 2012-06-27 09:42:27 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-06-27 09:42:27 +0000 |
commit | 018271d3804ead3488e089898695f7f1d2cda812 (patch) | |
tree | fff8d7e86a5d5c7fab66ed15b4183adffbad2eee /Source/SPPreferenceController.m | |
parent | e0be0f0668619e4fb70e23d8e25b2680f12b6a12 (diff) | |
download | sequelpro-018271d3804ead3488e089898695f7f1d2cda812.tar.gz sequelpro-018271d3804ead3488e089898695f7f1d2cda812.tar.bz2 sequelpro-018271d3804ead3488e089898695f7f1d2cda812.zip |
Tidy up an use enums.
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r-- | Source/SPPreferenceController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 78cb0b9b..f13a3f9b 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -159,14 +159,14 @@ switch (fontChangeTarget) { - case 1: + case SPPrefFontChangeTargetTable: font = [[NSFontPanel sharedFontPanel] panelConvertFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPGlobalResultTableFont]]]; [prefs setObject:[NSArchiver archivedDataWithRootObject:font] forKey:SPGlobalResultTableFont]; [(SPTablesPreferencePane *)tablesPreferencePane updateDisplayedTableFontName]; break; - case 2: + case SPPrefFontChangeTargetEditor: font = [[NSFontPanel sharedFontPanel] panelConvertFont:[NSUnarchiver unarchiveObjectWithData:[prefs dataForKey:SPCustomQueryEditorFont]]]; [prefs setObject:[NSArchiver archivedDataWithRootObject:font] forKey:SPCustomQueryEditorFont]; |