sw/source/ui/utlui/copyfielddlg.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 53d9f2712f6e447240d67538f9890030e2e4e27f
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:39 2025 +0200

    Close copy field dialog directly if 'Copy' is pressed
    
    Change-Id: If4482c9c6c931fa6cf205ce999a56d9990930537
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184142
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Tested-by: Gabor Kelemen <gabor.kelemen.ext...@allotropia.de>
    Tested-by: Jenkins

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: */

Reply via email to