[nautilus] places-view: fix warning for wrong operator



commit 99bb990da72745c559a174f9a3e45788d38ab411
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]