summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2022-02-28 19:34:22 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2022-04-05 09:10:46 +0200
commitb7b517109c65757c87aa70b3f49dda18dfd8c1f8 (patch)
treebfdf960616384bdc7e2054910a0ca332d7172ab9
parent788599c7df58546900874ff0443be8522f9b4a04 (diff)
lok: run autofilter without timerscp-22.05.0-1
so we are sure we will get correct position Change-Id: Idd218e19b8b3f3d6da67e325472e11b5661bc3b3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130725 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Mert Tumer <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131123 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index fee9b9049aed..1a834a7aaccc 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -269,7 +269,10 @@ void ScCheckListMenuControl::queueLaunchSubMenu(size_t nPos, ScListSubMenuContro
maOpenTimer.mpSubMenu = pMenu;
maOpenTimer.mnMenuPos = nPos;
- maOpenTimer.maTimer.Start();
+ if (comphelper::LibreOfficeKit::isActive())
+ maOpenTimer.maTimer.Invoke();
+ else
+ maOpenTimer.maTimer.Start();
}
void ScCheckListMenuControl::queueCloseSubMenu()
@@ -285,7 +288,11 @@ void ScCheckListMenuControl::queueCloseSubMenu()
maCloseTimer.mnMenuPos = maOpenTimer.mnMenuPos;
maOpenTimer.mpSubMenu = nullptr;
maOpenTimer.mnMenuPos = MENU_NOT_SELECTED;
- maCloseTimer.maTimer.Start();
+
+ if (comphelper::LibreOfficeKit::isActive())
+ maCloseTimer.maTimer.Invoke();
+ else
+ maCloseTimer.maTimer.Start();
}
tools::Rectangle ScCheckListMenuControl::GetSubMenuParentRect()