vcl/source/window/builder.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 32fa6dc99a4053f134bc37e93a03743ff84527c4
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Oct 27 13:04:47 2021 +0200
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Fri Oct 29 10:24:43 2021 +0200

    jsdialogs: use for MessageDialogs
    
    Change-Id: Ie82558356cd9669f21afefd1ee88d769bf28eb8d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124268
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 8bd423b77cbc..892c7c4f1751 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -180,9 +180,9 @@ weld::Builder* 
Application::CreateInterimBuilder(vcl::Window* pParent, const OUS
 
 weld::MessageDialog* Application::CreateMessageDialog(weld::Widget* pParent, 
VclMessageType eMessageType,
                                                       VclButtonsType 
eButtonType, const OUString& rPrimaryMessage,
-                                                      bool bMobile)
+                                                      bool /*bMobile*/)
 {
-    if (bMobile)
+    if (comphelper::LibreOfficeKit::isActive())
         return JSInstanceBuilder::CreateMessageDialog(pParent, eMessageType, 
eButtonType, rPrimaryMessage);
     else
         return ImplGetSVData()->mpDefInst->CreateMessageDialog(pParent, 
eMessageType, eButtonType, rPrimaryMessage);

Reply via email to