* Fixed the empty header list view problem when removing the last message of a folder
authorSergio Villar Senin <svillar@igalia.com>
Wed, 30 Jan 2008 18:59:54 +0000 (18:59 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 30 Jan 2008 18:59:54 +0000 (18:59 +0000)
pmo-trunk-r4116

src/maemo/modest-main-window.c

index 14d8b8e..74031f0 100644 (file)
@@ -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 */