aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPPrintAccessory.m1
-rw-r--r--Source/TableDocument.m3
2 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPPrintAccessory.m b/Source/SPPrintAccessory.m
index 4128e8ad..93c7ce4e 100644
--- a/Source/SPPrintAccessory.m
+++ b/Source/SPPrintAccessory.m
@@ -12,6 +12,7 @@
- (void)awakeFromNib
{
[self setView:printAccessoryView];
+ [[WebPreferences standardPreferences] setShouldPrintBackgrounds:[[defaultsController valueForKeyPath:@"values.PrintBackground"] boolValue] ];
[defaultsController addObserver:self forKeyPath:@"values.PrintBackground" options:NSKeyValueObservingOptionNew context:@"PrinterSettingsChanged"];
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 3cc11425..acd8d978 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -81,9 +81,6 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
sshTunnel = nil;
printWebView = [[WebView alloc] init];
- // otherwise WebView doesn't print background colors
- WebPreferences* wvPrefs = [printWebView preferences];
- [wvPrefs setShouldPrintBackgrounds: YES];
[printWebView setFrameLoadDelegate:self];
prefs = [NSUserDefaults standardUserDefaults];