diff options
author | Ilhan Yesil <ilhanyesil@gmx.de> | 2018-10-29 12:33:25 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-10-29 17:54:54 +0100 |
commit | b8e260a9372de9ee1186e1f78ade29717e9b8026 (patch) | |
tree | b2c6824ec330a2bdc04af0f52761ab6e60975ce7 | |
parent | 9c5f3baa657290cca801767f9e5886f6287e2f08 (diff) |
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@CIB.de>
-rw-r--r-- | sw/source/uibase/app/apphdl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index dda0b9143141..04255a9721c1 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -66,6 +66,7 @@ #include <com/sun/star/sdbc/XDataSource.hpp> #include <org/freedesktop/PackageKit/SyncDbusSessionHelper.hpp> #include <swabstdlg.hxx> +#include <comphelper/dispatchcommand.hxx> #include <salhelper/simplereferenceobject.hxx> #include <rtl/ref.hxx> @@ -814,7 +815,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 |