save project after it was opened (otherwise directory index could not be initialized)

This commit is contained in:
Anna Kozlova
2012-06-01 16:43:47 +04:00
parent 1bdd25eb92
commit ea8dbf5644
@@ -142,7 +142,6 @@ public class NewProjectUtil {
if (projectBuilder != null) {
projectBuilder.commit(newProject, null, ModulesProvider.EMPTY_MODULES_PROVIDER);
newProject.save();
}
final boolean need2OpenProjectStructure = projectBuilder == null || projectBuilder.isOpenProjectSettingsAfter();
@@ -185,6 +184,7 @@ public class NewProjectUtil {
projectManager.openProject(newProject);
}
newProject.save();
}
finally {
if (projectBuilder != null) {