cui/source/dialogs/cuihyperdlg.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 30507382e11e2340c7dee7adced1f5f37a2d9e7f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Apr 5 20:02:37 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Apr 5 21:44:49 2021 +0200

    Related: tdf#141499 don't grab focus during teardown of dialog
    
    Change-Id: Ib55825294b4276cf36d7ce13562dc52b71f2a5bb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113615
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/cui/source/dialogs/cuihyperdlg.cxx 
b/cui/source/dialogs/cuihyperdlg.cxx
index f4da049c61cb..42d17b2fe720 100644
--- a/cui/source/dialogs/cuihyperdlg.cxx
+++ b/cui/source/dialogs/cuihyperdlg.cxx
@@ -150,6 +150,8 @@ SvxHpLinkDlg::SvxHpLinkDlg(SfxBindings* pBindings, 
SfxChildWindow* pChild, weld:
 
 SvxHpLinkDlg::~SvxHpLinkDlg()
 {
+    mbGrabFocus = false; // don't do any grab if tear-down moves focus around 
during destruction
+
     // delete config item, so the base class (SfxModelessDialogController) can 
not load it on the next start
     SvtViewOptions aViewOpt( EViewType::TabDialog, 
OUString::number(SID_HYPERLINK_DIALOG) );
     aViewOpt.Delete();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to