From cb80e0ef5175b3a8405030543df0f6edaee8a61f Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Thu, 4 Sep 2008 09:53:53 -0500 Subject: [PATCH] No longer polluting the standard WebView preferences. Thanks to Christiaan Hofman for the patch. --- SUUpdateAlert.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m index 305e7f54..977f0c12 100644 --- a/SUUpdateAlert.m +++ b/SUUpdateAlert.m @@ -61,8 +61,10 @@ - (void)displayReleaseNotes { - [[WebPreferences standardPreferences] setStandardFontFamily:[[NSFont systemFontOfSize:8] familyName]]; - [releaseNotesView setPreferences:[WebPreferences standardPreferences]]; + // Set the default font, but avoid polluting the standard preferences. + WebPreferences *preferences = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:[WebPreferences standardPreferences]]]; + [preferences setStandardFontFamily:[[NSFont systemFontOfSize:8] familyName]]; + [releaseNotesView setPreferences:preferences]; [releaseNotesView setFrameLoadDelegate:self]; [releaseNotesView setPolicyDelegate:self];