vcl/jsdialog/jsdialogbuilder.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 887b2eb4583549d104c03747405e1f925ab6168a
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Feb 2 11:57:48 2023 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Feb 6 14:26:37 2023 +0000

    jsdialog: weld all message boxes
    
    This fixes regression from:
    commit 9785cebe4cfdc296143757da6098a74b0252c618
    jsdialog: fix validation error dialog in Calc
    
    When inserting autofilter without header data
    - message box should appear
    
    Change-Id: Id5d26604a67f43700310cc0f51954b886c9de0f4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146495
    Reviewed-by: Henry Castro <hcas...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146575
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 69300b516698..f9fd939b38a8 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -1182,8 +1182,7 @@ weld::MessageDialog* 
JSInstanceBuilder::CreateMessageDialog(weld::Widget* pParen
     else
         SAL_WARN("vcl", "No notifier in 
JSInstanceBuilder::CreateMessageDialog");
 
-    // fallback
-    return new SalInstanceMessageDialog(xMessageDialog, nullptr, true);
+    return new JSMessageDialog(xMessageDialog, nullptr, true);
 }
 
 JSDialog::JSDialog(JSDialogSender* pSender, ::Dialog* pDialog, 
SalInstanceBuilder* pBuilder,

Reply via email to