diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarDockingWindow.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx index 3aba87450c4f..0ee2117875a5 100644 --- a/sfx2/source/sidebar/SidebarDockingWindow.cxx +++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx @@ -59,7 +59,8 @@ public: void Invoke() override { auto pNotifier = m_rSidebarDockingWin.GetLOKNotifier(); - if (!pNotifier || !comphelper::LibreOfficeKit::isActive()) + auto pMobileNotifier = SfxViewShell::Current(); + if (!pNotifier || (!pMobileNotifier && !comphelper::LibreOfficeKit::isActive())) return; try @@ -73,7 +74,7 @@ public: if (message != m_LastNotificationMessage) { m_LastNotificationMessage = message; - pNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, message.c_str()); + pMobileNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, message.c_str()); } } else |