[Libreoffice-commits] core.git: vcl/jsdialog

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 20 14:39:38 UTC 2021


 vcl/jsdialog/jsdialogbuilder.cxx |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

New commits:
commit ab85732e1c6a1b52cf95fd9fb50b9ccb7cac2137
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 19 14:08:35 2021 +0100
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Jan 20 15:38:58 2021 +0100

    jsdialog: enqueue update on dialog weld
    
    Change-Id: Id1fa7e69f2381df6c30598e28514132a20fac391
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109636
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 38ef2a44e354..ecd0f3d1b36d 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -472,16 +472,8 @@ std::unique_ptr<weld::Dialog> JSInstanceBuilder::weld_dialog(const OString& id)
 
         RememberWidget("__DIALOG__", pRet.get());
 
-        const vcl::ILibreOfficeKitNotifier* pNotifier = pDialog->GetLOKNotifier();
-        if (pNotifier)
-        {
-            tools::JsonWriter aJsonWriter;
-            m_aOwnedToplevel->DumpAsPropertyTree(aJsonWriter);
-            aJsonWriter.put("id", m_aOwnedToplevel->GetLOKWindowId());
-            pNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_JSDIALOG, aJsonWriter.extractData());
-        }
-
         initializeSender(GetNotifierWindow(), GetContentWindow(), GetTypeOfJSON());
+        sendFullUpdate();
     }
 
     return pRet;


More information about the Libreoffice-commits mailing list