From 58fa6cff7fd9f4e59d5b1537794b5995b6de5d63 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 24 Sep 2013 23:26:04 +0200 Subject: [PATCH] trivial: fix logic error The bar should become visible if we are EITHER in Downloads OR in PUBLIC. Fixes bug 708456, which is about very strange crashes when entering 'Downloads' --- src/share-extension.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share-extension.c b/src/share-extension.c index c1654d4..bac2ac2 100644 --- a/src/share-extension.c +++ b/src/share-extension.c @@ -153,7 +153,7 @@ nautilus_user_share_get_location_widget (NautilusLocationWidgetProvider *iface, if (enable == FALSE) return NULL; - if (is_dir[0] != FALSE && is_dir[1] != FALSE) { + if (is_dir[0] != FALSE || is_dir[1] != FALSE) { bar = nautilus_share_bar_new (_("May be used to share or receive files")); } else if (is_dir[0] != FALSE) { #ifndef HAVE_BLUETOOTH -- 1.8.4