From 5a495b5d64f7a94ccb0e4973decaf0c1e762f88c Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 23 Oct 2009 19:44:22 +0000
Subject: [PATCH] Fix for issue 4313 (Control-panel stop triggers authentication pop-up) After getting the return code from stop-ds, verify that the server released its lock on the file used to test that it is running.

---
 opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java
index 89693e4..6fdda91 100644
--- a/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java
+++ b/opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java
@@ -210,7 +210,7 @@
    */
   public void setVisible(boolean visible)
   {
-    if (lastComponentWithFocus == null)
+    if (visible && lastComponentWithFocus == null)
     {
       lastComponentWithFocus = panel.getPreferredFocusComponent();
     }

--
Gitblit v1.10.0