summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-07-19 08:27:57 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2019-07-19 19:08:33 +0200
commit3bc1f99d3a792cdba037bcc757e8611d7e187b73 (patch)
tree7d075ef2903458e38205d401363f36da9f81d1fe
parent1223bede826d9b237a6015bfcfb8df08913a02e8 (diff)
Mail merge: Preselect proper printer
The proper printer has already been set a few lines above depending on the value of 'bMergePrinterExists', so it shouldn't be unconditionally overwritten here with a potentially invalid printer (using the same statement as already used 7 lines above for the 'else' case). This e.g. makes sure that the default printer is selected when no printer has been set, e.g. just after running Mail Merge Wizard on a new Writer doc, in which case no printer was selected previously. Change-Id: I922b8234be9c80536b6b0a9ba0dd19bdc39246e8 Reviewed-on: https://gerrit.libreoffice.org/75932 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--sw/source/ui/dbui/mmresultdialogs.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index 21c9588d71d8..741cd9baab49 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -346,8 +346,6 @@ void SwMMResultPrintDialog::FillInPrinterSettings()
sal_Int32 count = xConfigItem->GetMergedDocumentCount();
m_xToNF->set_value(count);
m_xToNF->set_max(count);
-
- m_xPrinterLB->set_active_text(xConfigItem->GetSelectedPrinter());
}
void SwMMResultEmailDialog::FillInEmailSettings()