diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-25 14:03:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-25 16:14:59 +0100 |
commit | 3057538549fb30a0f5312653a97216ba93f126a2 (patch) | |
tree | 823fef1d779f36c1775729bcdf7d02be824fe7da /sc/source | |
parent | 7b0e0409c3f24dfe37d9c43ffa439b56ea719868 (diff) |
Resolves: tdf#145863 crash if popup closed before becoming truly visible
the timing has to be just right to get this to happen
Change-Id: I1ae81bf5c79b7f8b3fdf82b3fab94d5a3b6076cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125816
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index 05bd1cc15a0e..e88d99166eed 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1400,7 +1400,8 @@ void ScCheckListMenuControl::setPopupEndAction(Action* p) IMPL_LINK_NOARG(ScCheckListMenuControl, PopupModeEndHdl, weld::Popover&, void) { - clearSelectedMenuItem(); + if (mxMenu) + clearSelectedMenuItem(); if (mxPopupEndAction) mxPopupEndAction->execute(); |