diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-11-17 01:57:33 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2023-11-19 18:12:23 +0100 |
commit | 0a626ba2073772940fd9a4610d447e00f9afa3f9 (patch) | |
tree | bf83c25a6cf671223c1dda7808a1a6dce5fc0d14 /sd/source | |
parent | f8730aed0a5481c970cca8bd9f4f217d37bfb856 (diff) |
WIP: async popup menus
A first patch to get some feedback. Asnyc LO popup menus are still
buggy, as I'm not sure where to call the PopupMenu::Finish for
them.
Also the XDialogClosedListener is currently just for convenience
and might want some separate notifier.
Fun fact, that ImplExecute / ImplPopup is called for submenu, but
then doesn't execute. And generally the naming of some variables
is IMHO wrong; I might also prefix Menu members with "m_" for
easier readability.
Change-Id: Id8b413aa6b4699201e58db0113649c6b224d33b6
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index 4226f0e4e8d8..a338c525f746 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -805,7 +805,7 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) GetActiveWindow()->ReleaseMouse(); if(rCEvt.IsMouseEvent()) - GetViewFrame()->GetDispatcher()->ExecutePopup( aPopupId ); + GetViewFrame()->GetDispatcher()->ExecutePopup(aPopupId, nullptr, nullptr, [](sal_Int16){}); else { //don't open contextmenu at mouse position if not opened via mouse |