[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-6-1+backports' - sw/source
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 19 20:12:16 UTC 2019
sw/source/ui/dbui/mmresultdialogs.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit bbf354b702797f916df032aab4b64229293e1d92
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Jul 19 08:16:54 2019 +0200
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Fri Jul 19 22:11:32 2019 +0200
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 at posteo.de>
(cherry picked from commit 0f0adc34889ff68da584cea97a9de649174b0333)
Reviewed-on: https://gerrit.libreoffice.org/75970
Tested-by: Michael Weghorn <m.weghorn at posteo.de>
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index eb7a75ab7a98..0c4952f68d76 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -363,6 +363,7 @@ void SwMMResultPrintDialog::FillInPrinterSettings()
{
m_xPrinterLB->set_active_text(xConfigItem->GetSelectedPrinter());
}
+ PrinterChangeHdl_Impl(*m_xPrinterLB);
sal_Int32 count = xConfigItem->GetMergedDocumentCount();
m_xToNF->set_value(count);
@@ -814,8 +815,6 @@ IMPL_LINK_NOARG(SwMMResultPrintDialog, PrintHdl_Impl, weld::Button&, void)
IMPL_LINK_NOARG(SwMMResultPrintDialog, PrinterSetupHdl_Impl, weld::Button&, void)
{
- if (!m_pTempPrinter)
- PrinterChangeHdl_Impl(*m_xPrinterLB);
if (m_pTempPrinter)
m_pTempPrinter->Setup(m_xDialog.get());
}
More information about the Libreoffice-commits
mailing list