From fc0ae1d94da2595ef631eb94107c077059677ec4 Mon Sep 17 00:00:00 2001 From: Dualtagh Murray Date: Tue, 2 Oct 2018 14:23:58 +0100 Subject: [PATCH] 22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock --- editor/filesystem_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index 2c69909f230..4d386c1af6d 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; }