mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 308173 Printing reverts to default printer every time a page is printed r+sr=neil
This commit is contained in:
parent
b75fc52e3b
commit
dbdece5cf4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user