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

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


 vcl/inc/jsdialog/jsdialogbuilder.hxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 305f3963070c85f0c4e1e7543dd5709c7ffb714f
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 19 17:06:22 2021 +0100
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Feb 5 09:14:40 2021 +0100

    jsdialog: reduce number of unnecessary messages
    
    Change-Id: I8dfa464a39931a12dd2ecf91fc48f4812d75301b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109645
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109956
    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 25a2f04ad473..175e4e14b549 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -264,8 +264,10 @@ public:
     using BaseInstanceClass::set_sensitive;
     virtual void set_sensitive(bool sensitive) override
     {
+        bool bIsSensitive = BaseInstanceClass::get_sensitive();
         BaseInstanceClass::set_sensitive(sensitive);
-        sendUpdate();
+        if (bIsSensitive != sensitive)
+            sendUpdate();
     }
 
     virtual css::uno::Reference<css::datatransfer::dnd::XDropTarget> get_drop_target() override


More information about the Libreoffice-commits mailing list