aboutsummaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorAndreas Haas2016-12-02 18:51:31 +0100
committerAndreas Haas2016-12-02 18:51:31 +0100
commitd82c2687f30d2f2ee9f8792068964f61ae56c7b7 (patch)
treeb22604022ce84966bdad252a1e251819f7cb2b23 /tools/editor
parent4d8bed33215c005f6aa6fcb34d5d343ee3bee23e (diff)
downloadgodot-d82c2687f30d2f2ee9f8792068964f61ae56c7b7.tar.gz
godot-d82c2687f30d2f2ee9f8792068964f61ae56c7b7.tar.zst
godot-d82c2687f30d2f2ee9f8792068964f61ae56c7b7.zip
Fix crash on project importing by dragging a folder.
Fixes #7226
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/project_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp
index c678e4a6b..f6846f16a 100644
--- a/tools/editor/project_manager.cpp
+++ b/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();