From e15ba50e9768c4498e35efcc55641403d43d57bb Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 17 Dec 2008 00:36:33 +0000
Subject: [PATCH] Fix for issue 3657 (Control Panel: problem with "Save" button in "Manage Entries" panel) Disable the save button after we detect that there are no changes to do on the entry.

---
 opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
index 5131930..5a87982 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/LDAPEntryPanel.java
@@ -579,6 +579,13 @@
         saveChanges.setEnabled(false);
         dlg.setVisible(true);
       }
+      else if (errors.size() == 0)
+      {
+        // Mark the panel as it has no changes.  This can happen because every
+        // time the user types something the saveChanges button is enabled
+        // (for performance reasons with huge entries).
+        saveChanges.setEnabled(false);
+      }
     }
     catch (OpenDsException ode)
     {

--
Gitblit v1.10.0