directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r882427 - /directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Date Fri, 20 Nov 2009 06:18:45 GMT
Author: seelmann
Date: Fri Nov 20 06:18:44 2009
New Revision: 882427

URL: http://svn.apache.org/viewvc?rev=882427&view=rev
Log:
Fix for DIRSTUDIO-597 (Modification sent to the server while browsing through the DIT and
refreshing entries)

Modified:
    directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java

Modified: directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java?rev=882427&r1=882426&r2=882427&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
(original)
+++ directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
Fri Nov 20 06:18:44 2009
@@ -381,6 +381,13 @@
                 IEntry autoSaveSharedReferenceCopy = autoSaveSharedReferenceCopies.get( originalEntry
);
                 IEntry autoSaveSharedWorkingCopy = autoSaveSharedWorkingCopies.get( originalEntry
);
 
+                // only auto-save if the source of the modification event is an entry
+                // i.e. the modification was done on the entry itself
+                if ( !( event.getSource() instanceof IEntry ) )
+                {
+                    return;
+                }
+
                 // consistency check: don't save if there is an empty value, silently return
in that case
                 for ( IAttribute attribute : autoSaveSharedWorkingCopy.getAttributes() )
                 {



Mime
View raw message