summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()