From: Sergio Villar Senin Date: Wed, 30 Jan 2008 18:59:54 +0000 (+0000) Subject: * Fixed the empty header list view problem when removing the last message of a folder X-Git-Tag: git_migration_finished~1735 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=3f2f78216537cfd3a9cd8dc7e702c7850ce906cd * Fixed the empty header list view problem when removing the last message of a folder pmo-trunk-r4116 --- diff --git a/src/maemo/modest-main-window.c b/src/maemo/modest-main-window.c index 14d8b8e..74031f0 100644 --- a/src/maemo/modest-main-window.c +++ b/src/maemo/modest-main-window.c @@ -1929,6 +1929,8 @@ on_msg_count_changed (ModestHeaderView *header_view, if ((changed) & TNY_FOLDER_CHANGE_CHANGED_EXPUNGED_HEADERS) refilter = TRUE; + } else { + folder_empty = (((guint) tny_folder_get_all_count (TNY_FOLDER (folder))) == 0); } /* Check if all messages are marked to be deleted */