directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1677534 - /directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java
Date Mon, 04 May 2015 07:27:10 GMT
Author: elecharny
Date: Mon May  4 07:27:09 2015
New Revision: 1677534

URL: http://svn.apache.org/r1677534
Log:
Fixed an issue : the logLevel was not reinitialized when the ANY flag was seelected and unset,
so the value was negative

Modified:
    directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java

Modified: directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java?rev=1677534&r1=1677533&r2=1677534&view=diff
==============================================================================
--- directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java
(original)
+++ directory/studio/trunk/plugins/openldap.common.ui/src/main/java/org/apache/directory/studio/openldap/common/ui/dialogs/LogLevelDialog.java
Mon May  4 07:27:09 2015
@@ -364,6 +364,14 @@ public class LogLevelDialog extends Dial
         }
         else
         {
+            if ( logLevelValue == LogLevel.ANY.getValue() )
+            {
+                // We cancel the ANY selection, so we have to set the LogLevelValue
+                // to 0, as it's currently -1
+                logLevelValue = 0;
+            }
+            
+            // Now, check all the checkBox selections
             if ( aclCheckbox.getSelection() )
             {
                 logLevelValue |= LogLevel.ACL.getValue();



Mime
View raw message