diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-04 16:49:31 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-04-09 11:54:49 +0200 |
commit | d560e0c16a04e509d94664b3e3a95c79a0fd41d8 (patch) | |
tree | b1911718947463130116b411238e030aee5cd2df /vcl/jsdialog | |
parent | 5f6b57b67dbf07676cf5821bcc34eb7de79cb9ac (diff) |
lok: jsbuilder: avoid sending early id to client side
In the case of Macro Selector Dialog it is not required
to send the id too early when the dialog is created and
it is not initialized yet.
Change-Id: I22fb05bd9ecff49b3e9eda19737750379a61dd69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107244
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index 9e77a939ce2f..bcf65b1ea255 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -404,7 +404,7 @@ std::unique_ptr<weld::Dialog> JSInstanceBuilder::weld_dialog(const OString& id) RememberWidget("__DIALOG__", pRet.get()); const vcl::ILibreOfficeKitNotifier* pNotifier = pDialog->GetLOKNotifier(); - if (pNotifier) + if (pNotifier && id != "MacroSelectorDialog") { tools::JsonWriter aJsonWriter; m_aOwnedToplevel->DumpAsPropertyTree(aJsonWriter); |