Преглед изворни кода

22586: Dragging file icon on to another file causes "Error Moving" in FileSystem dock

Dualtagh Murray пре 7 година
родитељ
комит
fc0ae1d94d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      editor/filesystem_dock.cpp

+ 1 - 1
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;
 	}