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:
parent
f8181966e6
commit
e8dbe2ee27
1 changed files with 7 additions and 0 deletions
|
@ -1061,6 +1061,13 @@ static int clipboard_callback(int action,const struct menu_item_ex *this_item)
|
||||||
switch (action)
|
switch (action)
|
||||||
{
|
{
|
||||||
case ACTION_REQUEST_MENUITEM:
|
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)
|
if (context == CONTEXT_ID3DB)
|
||||||
return ACTION_EXIT_MENUITEM;
|
return ACTION_EXIT_MENUITEM;
|
||||||
if (this_item == &clipboard_paste_item)
|
if (this_item == &clipboard_paste_item)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue