[nautilus/gnome-3-20] places-view: fix warning for wrong operator
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] places-view: fix warning for wrong operator
- Date: Thu, 28 Apr 2016 09:42:42 +0000 (UTC)
commit 16f36fec9096847282d0f1a466d20535c58c92f3
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Mar 24 17:11:09 2016 +0100
places-view: fix warning for wrong operator
!whatever == 0 is not !(whatever == 0) but actually the opposite.
Which makes me think this code is never reached.
For now just fix it.
src/nautilus-places-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c
index 1a01495..44ea65d 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -204,7 +204,7 @@ nautilus_places_view_set_location (NautilusView *view,
* delegates the location to application, which takes care of
* selecting the appropriate view.
*/
- if (!g_strcmp0 (uri, "other-locations:///") == 0) {
+ if (g_strcmp0 (uri, "other-locations:///") != 0) {
nautilus_application_open_location_full (NAUTILUS_APPLICATION
(g_application_get_default ()),
location, 0, NULL, NULL, NULL);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]