summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgroud <gilles.roudiere@gmail.com>2018-09-27 13:54:09 +0200
committergroud <gilles.roudiere@gmail.com>2018-09-27 13:54:09 +0200
commit4f998faa2d672b067c3e5fc583f3a6aa978059b1 (patch)
tree9341e17d89f228a72ccae178c195e828d17b306b
parenta2b6be23ada5e7dc6f5815236d7d2b3bb41ab2db (diff)
Fixes drag & drop in the file list
-rw-r--r--editor/filesystem_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index 607ced4573..4794d4d8a0 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1859,7 +1859,7 @@ void FileSystemDock::_get_drag_target_folder(String &target, bool &target_favori
}
String ltarget = files->get_item_metadata(pos);
- target = ltarget.ends_with("/") ? target : path;
+ target = ltarget.ends_with("/") ? ltarget : path;
return;
}