Merge pull request #7233 from Hinsbart/fix_dnd_crash

Fix crash on project importing by dragging a folder.
This commit is contained in:
Rémi Verschelde 2016-12-08 07:46:19 +01:00 committed by GitHub
commit 9b1e04f79e

View file

@ -1154,7 +1154,7 @@ void ProjectManager::_files_dropped(StringArray p_files, int p_screen) {
dir->list_dir_begin(); dir->list_dir_begin();
String file = dir->get_next(); String file = dir->get_next();
while(confirm && file!=String()) { 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; confirm = false;
} }
file = dir->get_next(); file = dir->get_next();