* Fixes NB#92413, fixed a wrong if statement
authorSergio Villar Senin <svillar@igalia.com>
Thu, 13 Nov 2008 12:32:41 +0000 (12:32 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 13 Nov 2008 12:32:41 +0000 (12:32 +0000)
pmo-trunk-r6291

src/modest-ui-dimming-rules.c

index fe02ad4..ffb571c 100644 (file)
@@ -2390,7 +2390,7 @@ _purged_attach_selected (ModestWindow *win, gboolean all, ModestDimmingRule *rul
        if (attachments == NULL)
                return FALSE;
 
-       if (tny_list_get_length (attachments)) {
+       if (tny_list_get_length (attachments) == 0) {
                g_object_unref (attachments);
                return FALSE;
        }