From e51b16d36919d1f075804cffcb9739c2ce761028 Mon Sep 17 00:00:00 2001 From: Max Eliaser Date: Tue, 1 Jan 2019 13:14:11 -0800 Subject: [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. --- src/file-manager/fm-directory-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 2272f3bd..dcf96b2a 100644 --- a/src/file-manager/fm-directory-view.c +++ b/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; -- cgit v1.2.1