Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog.java
index 01f6f2ef0..dd92a51a2 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/TaskRepositoryWizardDialog.java
@@ -151,8 +151,7 @@ public class TaskRepositoryWizardDialog extends WizardDialog {
HashMap<String, Boolean> savedEnabledState = null;
if (getShell() != null) {
savedEnabledState = new HashMap<String, Boolean>();
- if (validateServerButton != null && getShell().getDisplay().getFocusControl() == validateServerButton
- && validateServerButton.getShell() == getShell()) {
+ if (validateServerButton != null && validateServerButton.getShell() == getShell()) {
savedEnabledState.put(VALIDATE_BUTTON_KEY, validateServerButton.getEnabled());
validateServerButton.setEnabled(false);
}

Back to the top