[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 27 10:33:09 UTC 2018


 sw/source/uibase/app/apphdl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e0e707e8b67ddeb26500c84069b9ce43f9c3b5be
Author:     Ilhan Yesil <ilhanyesil at gmx.de>
AuthorDate: Mon Oct 29 12:33:25 2018 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Tue Nov 27 11:32:45 2018 +0100

    tdf#121013 External tool opens it's own dialog to update input fields
    
    Instead calling function SwWrtShell::UpdateInputFields directly, use
    an UNO command, so an external tool can catch the UNO call.
    
    Change-Id: I978487e94b6f82a75b008bfcdc20bb025dc610f7
    Reviewed-on: https://gerrit.libreoffice.org/62502
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    (cherry picked from commit b8e260a9372de9ee1186e1f78ade29717e9b8026)
    Reviewed-on: https://gerrit.libreoffice.org/62542
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    (cherry picked from commit 1bab76b413346b54ee692b8e70e84b8e5367688d)
    Reviewed-on: https://gerrit.libreoffice.org/64095
    Reviewed-by: Ilhan Yesil <ilhanyesil at gmx.de>
    Tested-by: Ilhan Yesil <ilhanyesil at gmx.de>

diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 53db05357eee..36126367caa9 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -100,6 +100,7 @@
 #include <com/sun/star/sdbc/XDataSource.hpp>
 #include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp>
 #include <swabstdlg.hxx>
+#include <comphelper/dispatchcommand.hxx>
 
 #include <vcl/status.hxx>
 
@@ -840,7 +841,7 @@ void SwModule::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
                         bUpdateFields = false;
                     if(bUpdateFields)
                     {
-                        pWrtSh->UpdateInputFields();
+                        comphelper::dispatchCommand(".uno:UpdateInputFields", {});
 
                         // Are database fields contained?
                         // Get all used databases for the first time


More information about the Libreoffice-commits mailing list