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:
parent
5a77d86898
commit
12f2b8f8d5
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue