Browse Source

Merge pull request #7233 from Hinsbart/fix_dnd_crash

Fix crash on project importing by dragging a folder.
Rémi Verschelde 8 years ago
parent
commit
9b1e04f79e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/editor/project_manager.cpp

+ 1 - 1
tools/editor/project_manager.cpp

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