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 2005-09-15 16:01:14 +00:00
parent b75fc52e3b
commit dbdece5cf4

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) {