Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE

svn path=/trunk/netsurf/; revision=10919
This commit is contained in:
Chris Young 2010-10-30 09:23:03 +00:00
parent d250c43e4f
commit f2c834ac51

View File

@ -2165,7 +2165,8 @@ bool tree_mouse_action(struct tree *tree, browser_mouse_state mouse, int x,
tree_handle_node_element_changed(tree, &node->data);
}
tree->drag = TREE_MOVE_DRAG;
if (tree->flags & TREE_MOVABLE)
tree->drag = TREE_MOVE_DRAG;
return true;
}