From 018271d3804ead3488e089898695f7f1d2cda812 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 27 Jun 2012 09:42:27 +0000 Subject: Tidy up an use enums. --- Source/SPPreferenceController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/SPPreferenceController.m') 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]; -- cgit v1.2.3