summaryrefslogtreecommitdiff
path: root/src/nautilus-view.c
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-05-13 13:14:16 +0200
committerCarlos Soriano <csoriano@gnome.org>2015-05-13 13:17:06 +0200
commit5b197d1bf8123d4dac2be5f24b6f3fd168f50853 (patch)
treef4aa2b4e106cc56ea052f8fc5ce4e59e70f3e305 /src/nautilus-view.c
parent467c2eff5a227ab50223b93937e29835e06801c2 (diff)
downloadnautilus-5b197d1bf8123d4dac2be5f24b6f3fd168f50853.tar.gz
nautilus-view: allow folders to be opened in other app
So the user can open a folder in a different app. This is useful in cases like IDEs or text editors for entire projects. https://bugzilla.gnome.org/show_bug.cgi?id=691479
Diffstat (limited to 'src/nautilus-view.c')
-rw-r--r--src/nautilus-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 9f3763c04..b5e1875a0 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -6207,7 +6207,9 @@ real_update_actions_state (NautilusView *view)
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
"open-with-other-application");
g_simple_action_set_enabled (G_SIMPLE_ACTION (action),
- app != NULL);
+ app != NULL ||
+ (selection_count > 0 &&
+ nautilus_file_is_directory (NAUTILUS_FILE (selection->data))));
action = g_action_map_lookup_action (G_ACTION_MAP (view_action_group),
"open-item-new-tab");