1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2008-04-21 14:52:42 +00:00
parent f8181966e6
commit e8dbe2ee27

View file

@ -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)