Merge pull request #490 from macramole/master

Set project name automatically when choosing path for new projects in project manager
This commit is contained in:
reduz 2014-06-11 01:12:41 -03:00
commit 09023224b6

View file

@ -98,22 +98,21 @@ class NewProjectDialog : public ConfirmationDialog {
void _path_text_changed(const String& p_path) {
_test_path();
if (import_mode) {
if ( _test_path() ) {
String sp=p_path;
sp=sp.replace("\\","/");
int lidx=sp.find_last("/");
if (lidx!=-1) {
sp=sp.substr(lidx+1,sp.length());
}
if (sp=="")
if (sp=="" && import_mode )
sp="Imported Project";
project_name->set_text(sp);
}
}
void _file_selected(const String& p_path) {