small feature: set project name automatically when choosing path for new projects

This commit is contained in:
leandrogarber@gmail.com 2014-06-04 18:15:37 -03:00
parent 40e32b1fca
commit 0be5ff50aa

View file

@ -98,8 +98,7 @@ class NewProjectDialog : public ConfirmationDialog {
void _path_text_changed(const String& p_path) {
_test_path();
if (import_mode) {
if ( _test_path() ) {
String sp=p_path;
@ -108,12 +107,11 @@ class NewProjectDialog : public ConfirmationDialog {
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) {