summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-18 09:19:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-18 17:37:18 +0100
commit9ef696ff1594a2e3c6ef2185b27c8e67f6592b33 (patch)
tree883bed7b93e04bb929de6f2c318f2797fc0181b8 /sc/source/ui
parent6ce8066af743b172d36046a8dc8b17ebe010b6cf (diff)
when color menu popdowns only popdown the autofilter if something was selected
so the color menu can be dismissed without dismissing the autofilter Change-Id: Idb44f40a599382f86ffa9519910c37e64a56820c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125439 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/gridwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 33ea3fe045b8..5b203addbb12 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -978,11 +978,12 @@ void ScGridWindow::UpdateAutoFilterFromMenu(AutoFilterMode eMode)
sal_Int32 nSelected = rControl.ExecuteMenu(*xColorMenu);
xColorMenu.reset();
- rControl.terminateAllPopupMenus();
if (nSelected == 0)
return;
+ rControl.terminateAllPopupMenus();
+
// Disable color filter when active color was selected
if (nSelected == nActive)
{