directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r823592 - /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
Date Fri, 09 Oct 2009 15:46:56 GMT
Author: seelmann
Date: Fri Oct  9 15:46:56 2009
New Revision: 823592

URL: http://svn.apache.org/viewvc?rev=823592&view=rev
Log:
Fix for DIRSTUDIO-548 (SubtreeSpecification Editor does not accept empty filter if it's selected)

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java?rev=823592&r1=823591&r2=823592&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/search/FilterWidget.java
Fri Oct  9 15:46:56 2009
@@ -184,6 +184,10 @@
      */
     public String getFilter()
     {
+        if ( "".equals( filterCombo.getText() ) )
+        {
+            return ""; //$NON-NLS-1$
+        }
         parser.parse( filterCombo.getText() );
         return parser.getModel().isValid() ? filterCombo.getText() : null;
     }



Mime
View raw message