X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-header-window.c;h=1a36c2c3c81c0695a8675d89604fe789ef8c7350;hp=7d7b916077b8d0bd1a34d54093794efe4ec0d14e;hb=4232fa60b2b78beafdf5c24a6f1896b6baf0a9b0;hpb=af052d29355dbb67cbaee239e21f44276e60918b diff --git a/src/hildon2/modest-header-window.c b/src/hildon2/modest-header-window.c index 7d7b916..1a36c2c 100644 --- a/src/hildon2/modest-header-window.c +++ b/src/hildon2/modest-header-window.c @@ -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)); + + 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) {