summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-25 12:34:53 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-04-26 09:26:44 +0200
commit83bda568df0c6a65337922e20b6c7b74e20db415 (patch)
tree8eb43a08e718700ed587824bcbca4eeb27343d60 /sd/source
parentf0254aaea7d4a6a261731f76c99cb06f1b5ab2b1 (diff)
tdf#148654 stop playing sound with presentation ends
Change-Id: I74aa4cd966b6966f7826d241fcf9bb9d64955464 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133394 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 0c775d275913..ecb9663ed8ba 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1350,6 +1350,8 @@ IMPL_LINK_NOARG(SlideshowImpl, endPresentationHdl, void*, void)
{
mnEndShowEvent = nullptr;
+ stopSound();
+
if( mxPresentation.is() )
mxPresentation->end();
}