sfx2/source/sidebar/Deck.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 2d7d3cc936cb5b0a242ad7a5c714ebde03df574d Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue Oct 8 14:01:11 2019 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Oct 8 16:50:40 2019 +0200 lok: only generate sidebar JSON for mobile views, for now. Change-Id: I7a4b20cfc93ddd77752790a7c303f512a62afbb3 Reviewed-on: https://gerrit.libreoffice.org/80460 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index 5bc09fdfc2f5..d54b4cea5c67 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -196,7 +196,10 @@ void Deck::Resize() { Window::Resize(); - if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) + const vcl::ILibreOfficeKitNotifier *pNotifier; + if (comphelper::LibreOfficeKit::isActive() && + comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView()) && + (pNotifier = GetLOKNotifier())) { std::vector<vcl::LOKPayloadItem> aItems; aItems.emplace_back("type", "deck"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits