From 0e5667e28e1a31da06a797a93b72ecb1942d28b9 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 12 Sep 2013 10:58:19 +0100 Subject: Botched fixes just to get it to compile again --- amiga/context_menu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/amiga/context_menu.c b/amiga/context_menu.c index 27678dbc5..797f5810b 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -1220,7 +1220,12 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r switch(itemid) { case CMID_TREE_LAUNCH: - tree_launch_selected(tree, true); + tree_mouse_action(tree, BROWSER_MOUSE_DOUBLE_CLICK, 0, 0); + /**TODO: this needs fixing. ^^^^ + (a) the mouse co-ordinates where the context menu was opened are not propagated and + (b) does a double-click here open ALL selected entries? + (c) what happens if the user right-clicked over a non-selected entry with others selected? + **/ break; case CMID_TREE_EDITFOLDER: @@ -1256,7 +1261,7 @@ static uint32 ami_context_menu_hook_tree(struct Hook *hook, Object *item, APTR r break; case CMID_TREE_DELETE: - tree_delete_selected_nodes(tree, userdata); + tree_keypress(tree, KEY_DELETE_RIGHT); break; } } -- cgit v1.2.3