Fix crash on project importing by dragging a folder.
Fixes #7226
(cherry picked from commit d82c2687f3
)
This commit is contained in:
parent
f184455187
commit
1e34e8d5e1
1 changed files with 1 additions and 1 deletions
|
@ -1153,7 +1153,7 @@ void ProjectManager::_files_dropped(StringArray p_files, int p_screen) {
|
|||
dir->list_dir_begin();
|
||||
String file = dir->get_next();
|
||||
while(confirm && file!=String()) {
|
||||
if (!da->current_is_dir() && file.ends_with("engine.cfg")) {
|
||||
if (!dir->current_is_dir() && file.ends_with("engine.cfg")) {
|
||||
confirm = false;
|
||||
}
|
||||
file = dir->get_next();
|
||||
|
|
Loading…
Reference in a new issue