directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r774929 - /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java
Date Thu, 14 May 2009 21:11:43 GMT
Author: seelmann
Date: Thu May 14 21:11:43 2009
New Revision: 774929

URL: http://svn.apache.org/viewvc?rev=774929&view=rev
Log:
Subfolders and connections were not deleted when deleting a folder

Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java?rev=774929&r1=774928&r2=774929&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/DeleteAction.java
Thu May 14 21:11:43 2009
@@ -143,11 +143,11 @@
             List<Connection> connectionsToDelete = getConnectionsToDelete();
             List<ConnectionFolder> connectionsFoldersToDelete = getConnectionsFoldersToDelete();
             
-            if ( connections.length > 0 )
+            if ( !connectionsToDelete.isEmpty() )
             {
                 deleteConnections( connectionsToDelete );
             }
-            if ( connectionFolders.length > 0 )
+            if ( !connectionsFoldersToDelete.isEmpty() )
             {
                 deleteConnectionFolders( connectionsFoldersToDelete );
             }



Mime
View raw message