[Libreoffice-commits] core.git: vcl/inc
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 21 05:54:43 UTC 2021
vcl/inc/jsdialog/jsdialogbuilder.hxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 30ee1dc7d3e479cf5f77452acf163ff61e2697da
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Jan 19 17:06:22 2021 +0100
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Thu Jan 21 06:53:59 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>
diff --git a/vcl/inc/jsdialog/jsdialogbuilder.hxx b/vcl/inc/jsdialog/jsdialogbuilder.hxx
index 137659e9b217..aa9de490c249 100644
--- a/vcl/inc/jsdialog/jsdialogbuilder.hxx
+++ b/vcl/inc/jsdialog/jsdialogbuilder.hxx
@@ -246,8 +246,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