From f2c834ac515dc348ec142c579766e176ae379162 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 30 Oct 2010 09:23:03 +0000 Subject: Only set TREE_MOVE_DRAG is the tree is TREE_MOVABLE svn path=/trunk/netsurf/; revision=10919 --- desktop/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/tree.c b/desktop/tree.c index 566781ef7..f90b91033 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -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; } -- cgit v1.2.3