From d47c8966ab844de8bd75446371ee59962f2e7a7e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 27 May 2009 21:22:45 +0000 Subject: 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. --- Source/CustomQuery.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') 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; -- cgit v1.2.3