Skip to content

Commit de9caad

Browse files
sidorsettmtwebster
authored andcommitted
Update nemo-view.c
1 parent 05cf9bc commit de9caad

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/nemo-view.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4866,11 +4866,11 @@ add_x_content_apps (NemoView *view, NemoFile *file, GList **applications)
48664866
}
48674867

48684868
static void
4869-
reset_open_with_menu (NemoView *view, GList *selection)
4869+
reset_open_with_menu (NemoView *view, GList *selection, gboolean filter_default)
48704870
{
48714871
GList *applications, *node;
48724872
NemoFile *file;
4873-
gboolean submenu_visible, filter_default;
4873+
gboolean submenu_visible;
48744874
int num_applications;
48754875
int index;
48764876
gboolean other_applications_visible;
@@ -4892,7 +4892,6 @@ reset_open_with_menu (NemoView *view, GList *selection)
48924892
&view->details->open_with_action_group);
48934893

48944894
other_applications_visible = (selection != NULL);
4895-
filter_default = (selection != NULL);
48964895

48974896
for (node = selection; node != NULL; node = node->next) {
48984897

@@ -4903,7 +4902,7 @@ reset_open_with_menu (NemoView *view, GList *selection)
49034902
}
49044903

49054904
default_app = NULL;
4906-
if (filter_default) {
4905+
if (filter_default && selection != NULL) {
49074906
default_app = nemo_mime_get_default_application_for_files (selection);
49084907
}
49094908

@@ -9844,7 +9843,7 @@ real_update_menus (NemoView *view)
98449843
g_free (label_with_underscore);
98459844

98469845
/* Broken into its own function just for convenience */
9847-
reset_open_with_menu (view, selection);
9846+
reset_open_with_menu (view, selection, show_app);
98489847
reset_extension_actions_menu (view, selection);
98499848
reset_move_copy_to_menu (view);
98509849

0 commit comments

Comments
 (0)