summaryrefslogtreecommitdiff
path: root/vcl/jsdialog
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-03-10 13:53:04 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2023-03-21 15:00:32 +0000
commitb46defbc331c3c91553bc8967cdf48eacea87afd (patch)
tree55748233804478a40e3d87d9cfa3be22953d5331 /vcl/jsdialog
parent74e8476d23b72f06328dcbe183597847471771e1 (diff)
jsdialog: update Entry on replace_selection
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Ie0c3586fbf4bda1a9d68dceec61e08ff9f75bb97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148634 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149201 Tested-by: Jenkins
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r--vcl/jsdialog/jsdialogbuilder.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index d623e9723a7e..9a0f61d90caa 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -1488,6 +1488,12 @@ void JSEntry::set_text(const OUString& rText)
void JSEntry::set_text_without_notify(const OUString& rText) { SalInstanceEntry::set_text(rText); }
+void JSEntry::replace_selection(const OUString& rText)
+{
+ SalInstanceEntry::replace_selection(rText);
+ sendUpdate();
+}
+
JSListBox::JSListBox(JSDialogSender* pSender, ::ListBox* pListBox, SalInstanceBuilder* pBuilder,
bool bTakeOwnership)
: JSWidget<SalInstanceComboBoxWithoutEdit, ::ListBox>(pSender, pListBox, pBuilder,