summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-05 20:02:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-05 21:44:49 +0200
commit30507382e11e2340c7dee7adced1f5f37a2d9e7f (patch)
tree6ac6841b2eb2f39428fa014fb41ba42c1f1c6ad0 /cui/source
parentd7c4d0d4ea83481693af3645a03b03b53e456f60 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/dialogs/cuihyperdlg.cxx2
1 files changed, 2 insertions, 0 deletions
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();