* src/modest-ui-dimming-rules.c:
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 15 Jan 2008 12:31:31 +0000 (12:31 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 15 Jan 2008 12:31:31 +0000 (12:31 +0000)
* Change the dimming rule of editor remove attachments
  action to only dim if no attachments are selected (and
  then allowing to remove more than one attachment).
  Fixed NB#78873.

pmo-trunk-r4039

src/modest-ui-dimming-rules.c

index 34c4d53..d75b5cd 100644 (file)
@@ -1566,7 +1566,7 @@ modest_ui_dimming_rules_on_editor_remove_attachment (ModestWindow *win, gpointer
                n_att_selected = tny_list_get_length (selected_attachments);
                g_object_unref (selected_attachments);
 
-               dimmed = (n_att_selected != 1);
+               dimmed = (n_att_selected < 1);
        }
        
        return dimmed;