sd/source/ui/animations/CustomAnimationDialog.cxx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
New commits: commit 4c099dcdbd2b96fc586d920b6a22139bd1a4c705 Author: Andras Timar <andras.ti...@collabora.com> AuthorDate: Sun Apr 12 17:03:09 2020 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Sun Apr 12 20:07:08 2020 +0200 LOKit: Hide sound controls on Impress Custom Animation Dialog In Online, sounds cannot be heard, cannot be selected, so it's confusing to have sound settings on the Custom Animation Dialog Change-Id: Iff5155289700c412d9e50542de7e4fcf7830b67a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92087 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 2c0df3768793..9c5f2a699608 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -35,6 +35,7 @@ #include <memory> +#include <comphelper/lok.hxx> #include <i18nutil/unicode.hxx> #include <vcl/svapp.hxx> #include <vcl/stdtext.hxx> @@ -1109,8 +1110,18 @@ void CustomAnimationEffectTabPage::updateControlStates() mxFTTextDelay->set_sensitive( nPos != 0 ); } - nPos = mxLBSound->get_active(); - mxPBSoundPreview->set_sensitive( nPos >= 2 ); + if (comphelper::LibreOfficeKit::isActive()) + { + mxFTSound->hide(); + mxLBSound->hide(); + mxPBSoundPreview->hide(); + } + else + { + nPos = mxLBSound->get_active(); + mxPBSoundPreview->set_sensitive( nPos >= 2 ); + } + } IMPL_LINK(CustomAnimationEffectTabPage, implClickHdl, weld::Button&, rBtn, void) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits