[nautilus/wip/csoriano/destktop-split2] places-view: fix warning for wrong operator



commit 2fa439296e1c3a03c73c298dd4b79c01a800e299
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 b805490..4b22a3c 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -203,7 +203,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]