filter/source/pdf/impdialog.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
New commits: commit 241cd824fdd4bf02f393633c1e19d24f2f35f1c0 Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Wed Dec 14 20:33:18 2022 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Dec 20 06:40:49 2022 +0000 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 <andras.ti...@collabora.com> 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 ) {