diff --git a/widget/src/mac/nsPrintOptionsX.cpp b/widget/src/mac/nsPrintOptionsX.cpp index c13ee0c9106..bcdd8567929 100644 --- a/widget/src/mac/nsPrintOptionsX.cpp +++ b/widget/src/mac/nsPrintOptionsX.cpp @@ -86,8 +86,11 @@ nsPrintOptionsX::~nsPrintOptionsX() /** --------------------------------------------------- */ NS_IMETHODIMP -nsPrintOptionsX::ShowNativeDialog(void) +nsPrintOptionsX::ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings) { + + ReadPrefs(); + NS_ASSERTION(mPageFormat != kPMNoPageFormat, "No page format"); if (mPageFormat == kPMNoPageFormat) return NS_ERROR_NOT_INITIALIZED; @@ -104,6 +107,8 @@ nsPrintOptionsX::ShowNativeDialog(void) status = ::PMPageSetupDialog(mPageFormat, &accepted); ::PMEnd(); + + WritePrefs(); if (status != noErr) return NS_ERROR_FAILURE; diff --git a/widget/src/mac/nsPrintOptionsX.h b/widget/src/mac/nsPrintOptionsX.h index 5974c072ff6..5f0610acce3 100644 --- a/widget/src/mac/nsPrintOptionsX.h +++ b/widget/src/mac/nsPrintOptionsX.h @@ -55,7 +55,7 @@ public: nsPrintOptionsX(); virtual ~nsPrintOptionsX(); - NS_IMETHOD ShowNativeDialog(void); + NS_IMETHOD ShowPrintSetupDialog(nsIPrintSettings *aThePrintSettings); NS_IMETHOD ReadPrefs(void); NS_IMETHOD WritePrefs(void);