Bug 308173 Printing reverts to default printer every time a page is printed r+sr=neil

This commit is contained in:
masayuki%d-toybox.com 2006-07-29 05:43:24 +00:00
parent f1522f36af
commit 168a19a301

View File

@ -145,7 +145,10 @@ function NSPrint()
if (gPrintSettingsAreGlobal && gSavePrintSettings) {
var psService = Components.classes["@mozilla.org/gfx/printsettings-service;1"]
.getService(Components.interfaces.nsIPrintSettingsService);
psService.savePrintSettingsToPrefs(gPrintSettings, true, gPrintSettings.kInitSaveAll);
psService.savePrintSettingsToPrefs(gPrintSettings, true,
gPrintSettings.kInitSaveAll);
psService.savePrintSettingsToPrefs(gPrintSettings, false,
gPrintSettings.kInitSavePrinterName);
}
}
} catch (e) {