[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - vcl/inc vcl/jsdialog

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 5 08:01:40 UTC 2021


 vcl/inc/jsdialog/jsdialogbuilder.hxx |    1 +
 vcl/jsdialog/jsdialogbuilder.cxx     |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit fcaae67aaf206dd5424c6cdb206e156173114d55
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 19 15:55:29 2021 +0100
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Feb 5 09:01:08 2021 +0100

    jsdialog: flush message queue on dialog close
    
    Change-Id: I9e7d24e43a7ee7bf1a006c8d16e7b47a6b714fd9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109644
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109948
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 52533c0b8f2a..25a2f04ad473 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -91,6 +91,7 @@ public:
     virtual void sendFullUpdate(bool bForce = false);
     void sendClose();
     virtual void sendUpdate(VclPtr<vcl::Window> pWindow);
+    void flush() { mpIdleNotify->Invoke(); }
 
 protected:
     void initializeSender(VclPtr<vcl::Window> aNotifierWindow, VclPtr<vcl::Window> aContentWindow,
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx
index 54c773cc2fdf..55fdb2bd995d 100644
--- a/vcl/jsdialog/jsdialogbuilder.cxx
+++ b/vcl/jsdialog/jsdialogbuilder.cxx
@@ -158,7 +158,7 @@ void JSDialogSender::sendFullUpdate(bool bForce)
 void JSDialogSender::sendClose()
 {
     mpIdleNotify->sendMessage(jsdialog::MessageType::Close, nullptr);
-    mpIdleNotify->Start();
+    flush();
 }
 
 void JSDialogSender::sendUpdate(VclPtr<vcl::Window> pWindow)


More information about the Libreoffice-commits mailing list