If we remove all visible messages, then retrieve more messages.
[modest] / 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) {