mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-138189 The new module gets the project sdk despite the settings
This commit is contained in:
@@ -147,10 +147,7 @@ public class SdkSettingsStep extends ModuleWizardStep {
|
||||
myWizardContext.setProjectJdk(jdk);
|
||||
}
|
||||
else {
|
||||
Sdk sdk = ProjectRootManager.getInstance(project).getProjectSdk();
|
||||
if (sdk == null || !myModuleBuilder.isSuitableSdkType(sdk.getSdkType())) {
|
||||
myModuleBuilder.setModuleJdk(myJdkComboBox.getSelectedJdk());
|
||||
} // else, inherit project jdk
|
||||
myModuleBuilder.setModuleJdk(myJdkComboBox.getSelectedJdk());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user