If we remove all visible messages, then retrieve more messages.
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 2 Nov 2009 18:29:16 +0000 (19:29 +0100)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 5 Nov 2009 11:02:48 +0000 (12:02 +0100)
src/hildon2/modest-header-window.c

index 7d7b916..1a36c2c 100644 (file)
@@ -1026,6 +1026,11 @@ update_view (ModestHeaderWindow *self,
                modest_header_view_refilter (MODEST_HEADER_VIEW (priv->header_view));
 
        visible = modest_header_view_get_show_latest (MODEST_HEADER_VIEW (priv->header_view));
                modest_header_view_refilter (MODEST_HEADER_VIEW (priv->header_view));
 
        visible = modest_header_view_get_show_latest (MODEST_HEADER_VIEW (priv->header_view));
+
+       if (all_count > 0 && visible < all_count && folder_empty) {
+               modest_header_view_set_show_latest (MODEST_HEADER_VIEW (priv->header_view), visible + SHOW_LATEST_SIZE);
+       }
+
        if (visible > all_count)
                visible = all_count;
        if (visible == all_count) {
        if (visible > all_count)
                visible = all_count;
        if (visible == all_count) {