Meaningless comparison
authorPhilip Van Hoof <philip@codeminded.be>
Thu, 20 Sep 2007 10:57:05 +0000 (10:57 +0000)
committerPhilip Van Hoof <philip@codeminded.be>
Thu, 20 Sep 2007 10:57:05 +0000 (10:57 +0000)
pmo-trunk-r3367

src/modest-ui-dimming-rules.c

index be43ca6..77b6d9b 100644 (file)
@@ -196,7 +196,7 @@ _define_main_window_dimming_state (ModestMainWindow *window)
        if (model != NULL){
                gint count;
                count = gtk_tree_model_iter_n_children(model, NULL);
-               if(state->n_selected == count != 0)
+               if(state->n_selected == count)
                        state->all_selected = TRUE;
        }