Fix crash on project importing by dragging a folder.

Fixes #7226
This commit is contained in:
Andreas Haas 2016-12-02 18:51:31 +01:00
parent 4d8bed3321
commit d82c2687f3
No known key found for this signature in database
GPG Key ID: B5FFAE1B65FBD2E1

View File

@ -1154,7 +1154,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();