You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2009/11/20 07:18:45 UTC
svn commit: r882427 -
/directory/studio/trunk/ldapbrowser-ui/src/main/java/org/apache/directory/studio/entryeditors/EntryEditorManager.java
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() )
{