Merge pull request #22623 from dualtagh/22586

22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock
This commit is contained in:
Rémi Verschelde 2018-10-05 10:58:55 +02:00 committed by GitHub
commit 88935d47a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}