Commit 0a9e3528 authored by Martin Wehner's avatar Martin Wehner Committed by Martin Wehner

Test for the right path in the break condition. Fixes an infinite loop

2006-02-27  Martin Wehner  <martin.wehner@gmail.com>

	* libnautilus-private/nautilus-tree-view-drag-dest.c:
	(get_drop_path):
	Test for the right path in the break condition. Fixes an infinite
	loop when dragging an item over a non-folder child of an expanded
	node in the list view, deadlocking the desktop.
parent 48aeba9e
2006-02-27 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-private/nautilus-tree-view-drag-dest.c:
(get_drop_path):
Test for the right path in the break condition. Fixes an infinite
loop when dragging an item over a non-folder child of an expanded
node in the list view, deadlocking the desktop.
2006-02-27 Alexander Larsson <alexl@redhat.com>
* configure.in:
......
......@@ -316,13 +316,13 @@ get_drop_path (NautilusTreeViewDragDest *dest,
/* Go up the tree until we find a file that can accept a drop */
while (file == NULL /* dummy row */ ||
!nautilus_drag_can_accept_items (file, dest->details->drag_list)) {
if (gtk_tree_path_get_depth (path) == 1) {
if (gtk_tree_path_get_depth (ret) == 1) {
gtk_tree_path_free (ret);
ret = NULL;
break;
} else {
gtk_tree_path_up (ret);
nautilus_file_unref (file);
file = file_for_path (dest, ret);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment