Do not enable tools actions for folders

This commit is contained in:
Yevgen Muntyan 2006-06-24 00:26:41 -05:00
parent 59646ad060
commit 875ac6a7ee

View File

@ -336,7 +336,9 @@ action_check (ToolAction *action,
while (files) while (files)
{ {
if (!action_check_one (action, files->data)) MooFile *f = files->data;
if (!MOO_FILE_EXISTS (f) || MOO_FILE_IS_DIR (f) || !action_check_one (action, f))
{ {
visible = FALSE; visible = FALSE;
break; break;