From e8dbe2ee27a41d97e72bbe706d97f28d5c15c3d1 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 21 Apr 2008 14:52:42 +0000 Subject: [PATCH] fix FS#7780 - remove some possibly dangerous items from the file browser context menu if the (or mmc) is selected git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17206 a1c6a512-1295-4272-9138-f99709370657 --- apps/onplay.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/onplay.c b/apps/onplay.c index 6822d4238f..21b16c9381 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -1061,6 +1061,13 @@ static int clipboard_callback(int action,const struct menu_item_ex *this_item) switch (action) { case ACTION_REQUEST_MENUITEM: +#ifdef HAVE_MULTIVOLUME + if ((selected_file_attr & FAT_ATTR_VOLUME) && + (this_item == &rename_file_item || + this_item == &delete_dir_item || + this_item == &clipboard_cut_item) ) + return ACTION_EXIT_MENUITEM; +#endif if (context == CONTEXT_ID3DB) return ACTION_EXIT_MENUITEM; if (this_item == &clipboard_paste_item)