diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2024-10-03 20:24:53 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-10-04 11:29:45 +0200 |
commit | 37d3e978c95a99bffda6d6d2c6b76cbf7521b185 (patch) | |
tree | 82630bd43e1049f59cd418662a00d616861116cd /sd/source/ui/view/drviews4.cxx | |
parent | 3370e122d7f9edf40895f90706047ceb8ee7229d (diff) |
tdf#163124: Show correct PopUp when SlideShow running
When the non-native SlideShow in DrawViewShell::Command
in drviews4.cxx (see !bNativeShow) is active, the above
checks/actions have to be done to make the EditView work
normally, but use the "page" standard context menu
fallback only when SlideShow is not running to get the
SlideShow popup menu - as expected when SlideShow is
running.
Change-Id: I6e3bc69023218fc0decce61581ddbc498e00d39c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174437
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
Diffstat (limited to 'sd/source/ui/view/drviews4.cxx')
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx index b0ce3a71e0ca..776546ed9cfc 100644 --- a/sd/source/ui/view/drviews4.cxx +++ b/sd/source/ui/view/drviews4.cxx @@ -795,8 +795,13 @@ void DrawViewShell::Command(const CommandEvent& rCEvt, ::sd::Window* pWin) } // nothing selected - else + else if (!SlideShow::IsRunning(GetViewShellBase())) { + // tdf#163124 this is the non-native SlideShow (see !bNativeShow), + // thus the above checks/actions have to be done to make the + // EditView work normally, but use the "page" standard context menu + // fallback only when SlideShow is not running to get the + // SlideShow popup menu - as expected when SlideShow is running aPopupId = "page"; } } |