From 9eb3aabbf497dba2093f4394645bad3079286cf0 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 28 Jun 2020 19:57:01 +0300 Subject: No need for the AdditionsDialog if --disable-extensions Change-Id: If1ed6c860256e656846a1516e8170fb0dbd20499 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97346 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- cui/Library_cui.mk | 3 ++- cui/source/factory/dlgfact.cxx | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cui/Library_cui.mk b/cui/Library_cui.mk index ed1e07d5ff13..09f355776341 100644 --- a/cui/Library_cui.mk +++ b/cui/Library_cui.mk @@ -104,7 +104,8 @@ $(eval $(call gb_Library_add_exception_objects,cui,\ cui/source/customize/SvxNotebookbarConfigPage \ cui/source/customize/CustomNotebookbarGenerator \ cui/source/dialogs/about \ - cui/source/dialogs/AdditionsDialog \ + $(call gb_Helper_optional,EXTENSIONS, \ + cui/source/dialogs/AdditionsDialog) \ cui/source/dialogs/colorpicker \ cui/source/dialogs/cuicharmap \ cui/source/dialogs/cuifmsearch \ diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index d590b570343f..a31e987202eb 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include + #include #include "dlgfact.hxx" @@ -1684,8 +1686,13 @@ VclPtr AbstractDialogFactory_Impl::CreateQrCodeGenDialo VclPtr AbstractDialogFactory_Impl::CreateAdditionsDialog( weld::Window* pParent) { +#if HAVE_FEATURE_EXTENSIONS return VclPtr::Create( std::make_unique(pParent)); +#else + (void) pParent; + return VclPtr(nullptr); +#endif } VclPtr -- cgit v1.2.3