1
0
gnome-user-share/gnome-user-share-downloads-nautilus-crash.patch
Dominique Leuenberger 1fe311996c Accepting request 200485 from home:dimstar:branches:GNOME:Factory
- Add gnome-user-share-downloads-nautilus-crash.patch: Do not
  crash nautilus when entering 'Downloads' location (bnc#841659,
  bgo#708530, bgo#708456).

OBS-URL: https://build.opensuse.org/request/show/200485
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-user-share?expand=0&rev=69
2013-09-25 15:26:18 +00:00

31 lines
974 B
Diff

From 58fa6cff7fd9f4e59d5b1537794b5995b6de5d63 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
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