diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-11-28 16:59:26 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-11-28 16:59:26 +0530 |
commit | 29f23a47f02b05ddd9a3a626a6cf8bfa7083d1bc (patch) | |
tree | f167d7e1a07fb5bb9b3fc9ea8dfc49a0fc54f65d | |
parent | e87eef9b061697710d548e2a6b776ea4c3c3d026 (diff) |
lokdialog: Make hyperlink dialog work
Change-Id: Ia77998ef18060b999bae4e981a5dca3dd25f4953
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 5 |
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())); |