[nautilus] view: ensure we show "Open with..." entries for folders



commit c1551dfcfa9c92bf43c57b219535f63a9fecdad4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 26 11:08:12 2012 -0400

    view: ensure we show "Open with..." entries for folders
    
    This is a regression from commit
    b9c51fd4eb84a9f52ee4be1bf183fc516984130b
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672809

 src/nautilus-view.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 87cd9f1..7d6a5f8 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4491,8 +4491,9 @@ reset_open_with_menu (NautilusView *view, GList *selection)
 
 		file = NAUTILUS_FILE (node->data);
 
-		other_applications_visible &= (!nautilus_mime_file_opens_in_view (file) &&
-					       !nautilus_file_is_nautilus_link (file));
+		other_applications_visible &= ((!nautilus_mime_file_opens_in_view (file) &&
+						!nautilus_file_is_nautilus_link (file)) ||
+					       nautilus_file_is_directory (file));
 	}
 
 	default_app = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]