summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorDualtagh Murray <dualtagh.murray@gonitro.com>2018-10-02 14:23:58 +0100
committerDualtagh Murray <murray.dualtagh@gmail.com>2018-10-04 20:38:36 +0100
commitfc0ae1d94da2595ef631eb94107c077059677ec4 (patch)
treeb0686899971b9bf1884a1c6eb2e9cdcc610ec008 /editor
parent8068d0217a5e74c25f83fe93fa6e077b8d0b3bf5 (diff)
22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock
Diffstat (limited to 'editor')
-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 2c69909f23..4d386c1af6 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1953,7 +1953,7 @@ void FileSystemDock::_get_drag_target_folder(String &target, bool &target_favori
}
String ltarget = files->get_item_metadata(pos);
- target = ltarget.ends_with("/") ? ltarget : path;
+ target = ltarget.ends_with("/") ? ltarget : path.get_base_dir();
return;
}