diff options
author | Max Eliaser <[email protected]> | 2019-01-01 13:14:11 -0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-01-03 20:29:22 +0000 |
commit | e51b16d36919d1f075804cffcb9739c2ce761028 (patch) | |
tree | de189b58dce228876c55d743ed8e67386bc7e297 /src | |
parent | cf23b9ab14406c0b84be044fdf3fa93431a18a16 (diff) | |
download | caja-e51b16d36919d1f075804cffcb9739c2ce761028.tar.bz2 caja-e51b16d36919d1f075804cffcb9739c2ce761028.tar.xz |
[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.
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |