You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2019/05/14 18:54:32 UTC

[netbeans] branch master updated: fixed NETBEANS-1792:

This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 1850c36  fixed NETBEANS-1792:
     new fe8c873  Merge pull request #1250 from tdanard/NETBEANS-1792
1850c36 is described below

commit 1850c36ddedd4f2532e6087e386a1bcf0c32df99
Author: Thierry Danard <th...@int.com>
AuthorDate: Mon May 13 17:33:00 2019 -0500

    fixed NETBEANS-1792:
    
    Behavior of BooleanStateAction has changed
---
 platform/openide.awt/src/org/openide/awt/Actions.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/platform/openide.awt/src/org/openide/awt/Actions.java b/platform/openide.awt/src/org/openide/awt/Actions.java
index afacb480..cf9c91d 100644
--- a/platform/openide.awt/src/org/openide/awt/Actions.java
+++ b/platform/openide.awt/src/org/openide/awt/Actions.java
@@ -274,8 +274,7 @@ public class Actions {
         Bridge b;
         if (action instanceof BooleanStateAction) {
             b = new BooleanButtonBridge(button, (BooleanStateAction)action);
-        }
-        if (action.getValue(Actions.ACTION_VALUE_TOGGLE) != null) {
+        } else if (action.getValue(Actions.ACTION_VALUE_TOGGLE) != null) {
             b = new BooleanButtonBridge(button, action);
         } else {
             b = new ButtonBridge(button, action);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists