diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2020-07-01 14:49:03 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2020-07-06 12:36:51 +0200 |
commit | 61c6d9a15c61d500958c53bc0ab8e83a8b2f1021 (patch) | |
tree | a2808f57994eeff73b585ea67c94752913a072be /desktop | |
parent | 29c5e1ccbe28751297699eb184a861ee6b2f2f7e (diff) |
jsdialog: execute entry set text
Change-Id: I9e7d7da0bc0b6494b59270c683ae4a18d927bf4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97624
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97861
Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 767204cf05ee..f499213cf0a2 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3735,6 +3735,20 @@ static void doc_sendDialogEvent(LibreOfficeKitDocument* /*pThis*/, unsigned long bContinueWithLOKWindow = true; } } + else if (sControlType == "edit") + { + auto pEdit = dynamic_cast<weld::Entry*>(pWidget); + if (pEdit) + { + if (sAction == "change") + { + pEdit->set_text(aMap["data"]); + pEdit->signal_changed(); + } + else + bContinueWithLOKWindow = true; + } + } else { bContinueWithLOKWindow = true; |