summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/sidebar/Deck.cxx5
1 files changed, 4 insertions, 1 deletions
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");