From b46defbc331c3c91553bc8967cdf48eacea87afd Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Fri, 10 Mar 2023 13:53:04 +0100 Subject: jsdialog: update Entry on replace_selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Szymon Kłos Change-Id: Ie0c3586fbf4bda1a9d68dceec61e08ff9f75bb97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148634 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149201 Tested-by: Jenkins --- vcl/jsdialog/jsdialogbuilder.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vcl/jsdialog') 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(pSender, pListBox, pBuilder, -- cgit