sw/source/ui/utlui/copyfielddlg.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a8f72f5d7ec04589166957035347ab13212a4fac Author: Oliver Specht <[email protected]> AuthorDate: Mon Apr 14 12:45:15 2025 +0200 Commit: Thorsten Behrens <[email protected]> CommitDate: Thu Apr 17 09:33:51 2025 +0200 Close copy field dialog directly if 'Copy' is pressed Change-Id: If4482c9c6c931fa6cf205ce999a56d9990930537 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184144 Tested-by: allotropia jenkins <[email protected]> Reviewed-by: Thorsten Behrens <[email protected]> diff --git a/sw/source/ui/utlui/copyfielddlg.cxx b/sw/source/ui/utlui/copyfielddlg.cxx index 6625f581e451..866b44d48440 100644 --- a/sw/source/ui/utlui/copyfielddlg.cxx +++ b/sw/source/ui/utlui/copyfielddlg.cxx @@ -51,8 +51,7 @@ IMPL_LINK_NOARG(CopyFieldDlg, CopyHdl, weld::Button&, void) m_xFieldValueED->get_widget().select_region(0, -1); m_xFieldValueED->get_widget().copy_clipboard(); - if (nStartPos == nEndPos) - m_xFieldValueED->get_widget().select_region(0, 0); + m_xDialog->response(RET_OK); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
