diff options
author | Tor Norbye <tnorbye@google.com> | 2014-09-18 20:40:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-09-18 20:40:22 +0000 |
commit | 07d35c37ce79a64bdd905b394d40fc9bbb18fa60 (patch) | |
tree | e8787c45e494dfcc558faf0f75956f8785c39b94 /python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java | |
parent | e222a9e1e66670a56e926a6b0f3e10231eeeb1fb (diff) | |
parent | b5fb31ef6a38f19404859755dbd2e345215b97bf (diff) | |
download | idea-07d35c37ce79a64bdd905b394d40fc9bbb18fa60.tar.gz |
Merge "Merge remote-tracking branch 'aosp/upstream-master' into merge"
Diffstat (limited to 'python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java')
-rw-r--r-- | python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java b/python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java index 923629ce4473..cc6a2c6b6121 100644 --- a/python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java +++ b/python/src/com/jetbrains/python/sdk/PythonSdkDetailsStep.java @@ -46,7 +46,7 @@ import java.util.List; import java.util.Set; public class PythonSdkDetailsStep extends BaseListPopupStep<String> { - private DialogWrapper myMore; + @Nullable private DialogWrapper myMore; private final Project myProject; private final Component myOwnerComponent; private final Sdk[] myExistingSdks; @@ -120,6 +120,8 @@ public class PythonSdkDetailsStep extends BaseListPopupStep<String> { } private void optionSelected(final String selectedValue) { + if (!MORE.equals(selectedValue) && myMore != null) + Disposer.dispose(myMore.getDisposable()); if (LOCAL.equals(selectedValue)) { createLocalSdk(); } @@ -129,7 +131,7 @@ public class PythonSdkDetailsStep extends BaseListPopupStep<String> { else if (VIRTUALENV.equals(selectedValue)) { createVirtualEnvSdk(); } - else { + else if (myMore != null) { myMore.show(); } } |