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/GenericDialog.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericDialog.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericDialog.java
index 6f35209..9cc3a47 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericDialog.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/GenericDialog.java
@@ -234,13 +234,17 @@
*/
public void setVisible(boolean visible)
{
- if (lastComponentWithFocus == null)
+ if (visible && lastComponentWithFocus == null)
{
lastComponentWithFocus = panel.getPreferredFocusComponent();
}
if (visible && (lastComponentWithFocus != null) &&
lastComponentWithFocus.isVisible())
{
+ if (lastComponentWithFocus == null)
+ {
+ lastComponentWithFocus = panel.getPreferredFocusComponent();
+ }
lastComponentWithFocus.requestFocusInWindow();
}
updateDefaultButton(panel);
--
Gitblit v1.10.0