sw/source/ui/utlui/copyfielddlg.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a8f72f5d7ec04589166957035347ab13212a4fac Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Mon Apr 14 12:45:15 2025 +0200 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> 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 <jenk...@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> 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: */