tdf#126471 Apply selected MM printer on dialog open
commit0f0adc34889ff68da584cea97a9de649174b0333
authorMichael Weghorn <m.weghorn@posteo.de>
Fri, 19 Jul 2019 06:16:54 +0000 (19 08:16 +0200)
committerMichael Weghorn <m.weghorn@posteo.de>
Fri, 19 Jul 2019 17:08:43 +0000 (19 19:08 +0200)
treebd1991e818e9daf9fbc4f6535605747b3da0942b
parent3bc1f99d3a792cdba037bcc757e8611d7e187b73
tdf#126471 Apply selected MM printer on dialog open

Calling 'PrinterChangeHdl_Impl' in
'SwMMResultPrintDialog::FillInPrinterSettings' makes
sure that a preselected printer is actually taken
into account (i.e. 'm_pTempPrinter' set accordingly
etc.) as soon as the dialog is created, not only when
explicitly selecting another printer.

Since 'PrinterChangeHdl_Impl' is now called initially
and every time another printer is selected, there's no
more need to do so in 'PrinterSetupHdl_Impl' any more.

This fixes the issue that printout would always
happen on default printer instead of the preselected one
when SwMMResultPrintDialog was opened a second time.

Change-Id: I5c930ed56d1025a7e94cc98fb70c01612bda0d22
Reviewed-on: https://gerrit.libreoffice.org/75933
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
sw/source/ui/dbui/mmresultdialogs.cxx