summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-04-21 14:52:42 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-04-21 14:52:42 +0000
commite8dbe2ee27a41d97e72bbe706d97f28d5c15c3d1 (patch)
tree214cf802a49b6ae0142118e298c43ec0d1d1a057
parentf8181966e647ca23c3afef8c74cdb9e414cead61 (diff)
downloadrockbox-e8dbe2ee27a41d97e72bbe706d97f28d5c15c3d1.tar.gz
rockbox-e8dbe2ee27a41d97e72bbe706d97f28d5c15c3d1.tar.bz2
rockbox-e8dbe2ee27a41d97e72bbe706d97f28d5c15c3d1.zip
fix FS#7780 - remove some possibly dangerous items from the file browser context menu if the <microSD> (or mmc) is selected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17206 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/onplay.c7
1 files changed, 7 insertions, 0 deletions
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)