From 125500fed7ee9929ae9f94bcdc113801813dbf73 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 1 Jul 2021 21:12:26 +0100 Subject: tdf#143149 fix crash if app exits while print progress is running MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dismiss the dialog if its parent goes away, but leave the print job running Change-Id: Ic29ee0300a7d9476ad27a2594a555312e30c74f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118244 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- include/vcl/print.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/vcl/print.hxx') diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index e787ce40fca8..d96e6d7e87ac 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -387,7 +387,7 @@ class VCL_DLLPUBLIC PrinterController std::unique_ptr mpImplData; protected: - PrinterController(const VclPtr&, weld::Window*); + PrinterController(const VclPtr&, weld::Window* pDialogParent); public: struct MultiPageSetup { @@ -516,6 +516,8 @@ public: bool isShowDialogs() const; bool isDirectPrint() const; + void dialogsParentClosing(); + // implementation details, not usable outside vcl // don't use outside vcl. Some of these are exported for // the benefit of vcl's plugins. -- cgit