diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-02-28 19:34:22 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2022-03-04 12:29:21 +0100 |
commit | 9419c2928a97d5c14be244dfdec51401b0487809 (patch) | |
tree | 4476213977a7a7d2bed5f8affb42418ade6b5e41 /sc | |
parent | 4b46b6376cbc1338ef18b6f85427a8c64c91ef87 (diff) |
lok: run autofilter without timers
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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index c80c896f832f..e89fdbdb4df5 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -264,7 +264,10 @@ void ScCheckListMenuControl::queueLaunchSubMenu(size_t nPos, ScCheckListMenuWind maOpenTimer.mpSubMenu = pMenu; maOpenTimer.mnMenuPos = nPos; - maOpenTimer.maTimer.Start(); + if (comphelper::LibreOfficeKit::isActive()) + maOpenTimer.maTimer.Invoke(); + else + maOpenTimer.maTimer.Start(); } void ScCheckListMenuControl::queueCloseSubMenu() @@ -278,7 +281,10 @@ void ScCheckListMenuControl::queueCloseSubMenu() maCloseTimer.mpSubMenu = maOpenTimer.mpSubMenu; maCloseTimer.mnMenuPos = maOpenTimer.mnMenuPos; - maCloseTimer.maTimer.Start(); + if (comphelper::LibreOfficeKit::isActive()) + maOpenTimer.maTimer.Invoke(); + else + maCloseTimer.maTimer.Start(); } void ScCheckListMenuControl::launchSubMenu(bool bSetMenuPos) @@ -1403,6 +1409,8 @@ void ScCheckListMenuControl::launch(const tools::Rectangle& rRect) } StartPopupMode(aRect, FloatWinPopupFlags::Down); + if (comphelper::LibreOfficeKit::isActive()) + jsdialog::SendFullUpdate(std::to_string(mxFrame->GetLOKWindowId()), "toggle_all"); } void ScCheckListMenuControl::NotifyCloseLOK() |