summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-08-01 11:04:56 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-08-02 06:47:56 +0200
commit2d6aa340faf5409f1beb50193590b411f515d004 (patch)
treec050037a52ce7e919e06fdff5f1acd028f466d5d /solenv/gbuild/platform
parent1d1640dbeda76fcecd7b81200a60c267cea5f2f7 (diff)
tdf#162289 Update printer info before getting default printer HEADmaster
Move the call to `Printer::updatePrinters` to update the printer infos from the print dialog ctor to the beginning of `Printer::PreparePrintJob` (which is the only method potentially creating a print dialog) to make sure that the printer infos (including the default printer) are already up to date there. This e.g. makes sure that the current CUPS default printer on Linux gets preselected the next time the print dialog gets opened if it was changed while LO is running. (Otherwise, it would only be preselected as expected when the print dialog gets opened, closed and reopened again.) For macOS, there was already code to explicitly call `Printer::updatePrinters` in case the dialog was not shown. Drop that, as it happens unconditionally at the beginning now. Change-Id: I5cd530c0c9801bde88e40f5ac2220feb0e8d4247 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171371 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'solenv/gbuild/platform')
0 files changed, 0 insertions, 0 deletions