diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-10-23 15:26:28 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-10-24 10:35:51 +0200 |
commit | 9d44086770d9a1c625d42676033f47a698dfa572 (patch) | |
tree | ffa56b2ded524d56ccfd4edb931f9a5192c05530 /vcl | |
parent | 9e2da48ec3dbe541ff52f6d69f98afb57afaac3e (diff) |
jsdialog: don't send update in toolbox when not modified
Change-Id: I74087b54f9844ea5d22de03caf8724d38d525646
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158356
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index a15d85ae49c0..3cdf403c6242 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1982,8 +1982,10 @@ void JSToolbar::set_menu_item_active(const OString& rIdent, bool bActive) void JSToolbar::set_item_sensitive(const OString& rIdent, bool bSensitive) { + bool bWasSensitive = get_item_sensitive(rIdent); SalInstanceToolbar::set_item_sensitive(rIdent, bSensitive); - sendUpdate(); + if (bWasSensitive != bSensitive) + sendUpdate(); } void JSToolbar::set_item_icon_name(const OString& rIdent, const OUString& rIconName) |