summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-12-04 13:58:44 +0530
committerJan Holesovsky <kendy@collabora.com>2017-12-04 13:05:06 +0100
commit9f7a32627beb72416bbc8f9bbe25add277c1fc8b (patch)
tree1ecb3bc4f470ca398186aadbe18f83965a03490f
parentde5bef13019ca95429865d4a9794fbc2a6f81a1b (diff)
lokdialog: sc: Guard autofilter popup's LOK notification
Change-Id: I8d39a701618926e35c84f200ac7e2ce66e62b8b7
-rw-r--r--sc/source/ui/view/gridwin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index bfea6b18804c..d285f6c05287 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -681,7 +681,8 @@ void ScGridWindow::LaunchAutoFilterMenu(SCCOL nCol, SCROW nRow)
mpAutoFilterPopup.disposeAndClear();
mpAutoFilterPopup.reset(VclPtr<ScCheckListMenuWindow>::Create(this, pDoc));
- mpAutoFilterPopup->SetLOKNotifier(SfxViewShell::Current());
+ if (comphelper::LibreOfficeKit::isActive())
+ mpAutoFilterPopup->SetLOKNotifier(SfxViewShell::Current());
mpAutoFilterPopup->setOKAction(new AutoFilterAction(this, Normal));
mpAutoFilterPopup->setPopupEndAction(
new AutoFilterPopupEndAction(this, ScAddress(nCol, nRow, nTab)));