Skip to content

Commit e51b16d

Browse files
Max-Elukefromdc
authored andcommitted
[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.
1 parent cf23b9a commit e51b16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file-manager/fm-directory-view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8811,7 +8811,7 @@ real_update_menus (FMDirectoryView *view)
88118811
for (l = selection; l != NULL; l = l->next) {
88128812
CajaFile *file;
88138813

8814-
file = CAJA_FILE (selection->data);
8814+
file = CAJA_FILE (l->data);
88158815

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

0 commit comments

Comments
 (0)