diff options
-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 47743ac5ffc7..3dcfcdcbd391 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1965,8 +1965,10 @@ void JSToolbar::set_menu_item_active(const OUString& rIdent, bool bActive) void JSToolbar::set_item_sensitive(const OUString& 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 OUString& rIdent, const OUString& rIconName) |