No longer polluting the standard WebView preferences. Thanks to Christiaan Hofman for the patch.

This commit is contained in:
Andy Matuschak committed 2008-09-04 09:53:53 -05:00
1 parent ccef53a3d3
commit cb80e0ef51
1 file changed
+4 -2
+4 -2
View File
@@ -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];