1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 368987 - Project Name should not be reset when selecting existing code path

This commit is contained in:
John Cortell 2012-02-15 10:51:14 -06:00
parent 5a77d86898
commit 12f2b8f8d5

View file

@ -143,7 +143,11 @@ public class NewMakeProjFromExistingPage extends WizardPage {
File file= new File(location.getText());
if (file.isDirectory()) {
setErrorMessage(null);
projectName.setText(file.getName());
// Set the project name to the directory name but not if a
// name has already been specified (bugzilla 368987)
if (projectName.getText().isEmpty()) {
projectName.setText(file.getName());
}
} else
setErrorMessage(Messages.NewMakeProjFromExistingPage_8);
}