You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock
This commit is contained in:
committed by
Dualtagh Murray
parent
8068d0217a
commit
fc0ae1d94d
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user