From 12528a2548d419b1d48d1ec70f0f9ae3a94c0b20 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.
---
opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java
index 89693e4..6fdda91 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericFrame.java
+++ b/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