diff options
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 4187bf5a32..b951e9453e 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -618,14 +618,15 @@ void ProjectManager::_new_project() { } void ProjectManager::_rename_project() { - const HashSet<String> &selected_list = project_list->get_selected_project_keys(); + const Vector<ProjectList::Item> &selected_list = project_list->get_selected_projects(); if (selected_list.size() == 0) { return; } - for (const String &E : selected_list) { - project_dialog->set_project_path(E); + for (const ProjectList::Item &E : selected_list) { + project_dialog->set_project_name(E.project_name); + project_dialog->set_project_path(E.path); project_dialog->set_mode(ProjectDialog::MODE_RENAME); project_dialog->show_dialog(); } |