From 241cd824fdd4bf02f393633c1e19d24f2f35f1c0 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 14 Dec 2022 20:33:18 +0100 Subject: [PATCH] lok: hide 'View PDF after export' checkbox in PDF export dialog Change-Id: I866e4765ba88ca6c93375c9fecd51f22b79ce72e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144535 Tested-by: Jenkins Reviewed-by: Andras Timar --- filter/source/pdf/impdialog.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 2d8a366ae868..4a03de89fdef 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -632,7 +632,15 @@ void ImpPDFTabGeneralPage::SetFilterConfigItem(ImpPDFTabDialog* pParent) mxCbExportNotes->set_active( pParent->mbExportNotes ); mxCbExportNotesInMargin->set_active( pParent->mbExportNotesInMargin ); - mxCbViewPDF->set_active( pParent->mbViewPDF); + if (comphelper::LibreOfficeKit::isActive()) + { + mxCbViewPDF->hide(); + mxCbViewPDF->set_active(false); + } + else + { + mxCbViewPDF->set_active(pParent->mbViewPDF); + } if ( mbIsPresentation ) {