aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-05-27 21:22:45 +0000
committerstuconnolly <stuart02@gmail.com>2009-05-27 21:22:45 +0000
commitd47c8966ab844de8bd75446371ee59962f2e7a7e (patch)
treecac4ccea328f322fe4931ef64c2991d0173191d6 /Source/CustomQuery.m
parent3fa9f02e30dc276265fa6079d898b6dae98f3e68 (diff)
downloadsequelpro-d47c8966ab844de8bd75446371ee59962f2e7a7e.tar.gz
sequelpro-d47c8966ab844de8bd75446371ee59962f2e7a7e.tar.bz2
sequelpro-d47c8966ab844de8bd75446371ee59962f2e7a7e.zip
Fix for query editor font being lost. Initialize the prefs reference in setConnection as opposed to init, so we definitely know the font has already been set. Turns out it was me that moved it to init, my bad.
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 7fa6ac00..6bede294 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -914,6 +914,8 @@
id column;
mySQLConnection = theConnection;
+
+ prefs = [NSUserDefaults standardUserDefaults];
if ( [prefs objectForKey:@"queryFavorites"] ) {
queryFavorites = [[NSMutableArray alloc] initWithArray:[prefs objectForKey:@"queryFavorites"]];
@@ -1916,8 +1918,6 @@
// init search history
[helpWebView setMaintainsBackForwardList:YES];
[[helpWebView backForwardList] setCapacity:20];
-
- prefs = [NSUserDefaults standardUserDefaults];
}
return self;