summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-11-28 16:59:26 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-11-28 16:59:26 +0530
commit29f23a47f02b05ddd9a3a626a6cf8bfa7083d1bc (patch)
treef167d7e1a07fb5bb9b3fc9ea8dfc49a0fc54f65d
parente87eef9b061697710d548e2a6b776ea4c3c3d026 (diff)
lokdialog: Make hyperlink dialog work
Change-Id: Ia77998ef18060b999bae4e981a5dca3dd25f4953
-rw-r--r--sfx2/source/dialog/basedlgs.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx
index c20a046ec200..1c2d46d404ac 100644
--- a/sfx2/source/dialog/basedlgs.cxx
+++ b/sfx2/source/dialog/basedlgs.cxx
@@ -187,6 +187,11 @@ void SfxModalDialog::StateChanged(StateChangedType nType)
if (comphelper::LibreOfficeKit::isActive() && nType == StateChangedType::InitShow)
{
+ // There are some dialogs, like Hyperlink dialog, which inherit from
+ // ModalDialog even though they are modeless, i.e., their Execute method
+ // isn't called. We need to set the notifier for them.
+ if (!GetLOKNotifier())
+ SetLOKNotifier(SfxViewShell::Current());
const Size aSize = GetOptimalSize();
std::vector<vcl::LOKPayloadItem> aItems;
aItems.emplace_back(std::make_pair("size", aSize.toString()));