Skip to content
Browse files
[file-manager] Fix apparent bug in context menu updating code.
The code looked like it was supposed to check whether each file in the
selection could be opened in an external app, but was only checking the
first item in the selection repeatedly.

This bug may have been mostly benign since the subsequent call to
caja_mime_get_default_application_for_files will return NULL anyway if the
files don't all match each other.
  • Loading branch information
Max-E authored and lukefromdc committed Jan 3, 2019
1 parent cf23b9a commit e51b16d36919d1f075804cffcb9739c2ce761028
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/file-manager/fm-directory-view.c
@@ -8811,7 +8811,7 @@ real_update_menus (FMDirectoryView *view)
for (l = selection; l != NULL; l = l->next) {
CajaFile *file;

file = CAJA_FILE (selection->data);
file = CAJA_FILE (l->data);

if (!caja_mime_file_opens_in_external_app (file)) {
show_app = FALSE;

0 comments on commit e51b16d

Please sign in to comment.