summaryrefslogtreecommitdiff
path: root/include/vcl/print.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-01 21:12:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-02 10:14:18 +0200
commit125500fed7ee9929ae9f94bcdc113801813dbf73 (patch)
tree72ecc774cd04f1ea6c331964f15927e6d4b42261 /include/vcl/print.hxx
parent29b0fa1e9cf84657abe0722d5d92d4741c9b7974 (diff)
tdf#143149 fix crash if app exits while print progress is running
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 <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/print.hxx')
-rw-r--r--include/vcl/print.hxx4
1 files changed, 3 insertions, 1 deletions
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<ImplPrinterControllerData>
mpImplData;
protected:
- PrinterController(const VclPtr<Printer>&, weld::Window*);
+ PrinterController(const VclPtr<Printer>&, 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.