From: Philip Van Hoof Date: Wed, 11 Jul 2007 14:15:11 +0000 (+0000) Subject: Clearing the folder before rename X-Git-Tag: git_migration_finished~2839 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=f6c67c77ab1306d6f369ebe94b308d0286dfa451 Clearing the folder before rename pmo-trunk-r2699 --- diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 26c8c94..009b11e 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -55,6 +55,8 @@ #include "modest-marshal.h" #include "modest-error.h" #include "modest-mail-operation.h" +#include "widgets/modest-header-view.h" +#include "widgets/modest-main-window.h" #define KB 1024 #define GET_SIZE_BUFFER_SIZE 128 @@ -1756,6 +1758,10 @@ modest_mail_operation_rename_folder (ModestMailOperation *self, } else { TnyFolderStore *into; + ModestHeaderView *v = (ModestHeaderView *) modest_main_window_get_child_widget ( + (ModestMainWindow *)modest_window_mgr_get_main_window ( + modest_runtime_get_window_mgr ()), MODEST_WIDGET_TYPE_HEADER_VIEW); + /* Create the helper */ helper = g_slice_new0 (XFerMsgAsyncHelper); helper->mail_op = g_object_ref(self); @@ -1764,6 +1770,8 @@ modest_mail_operation_rename_folder (ModestMailOperation *self, helper->user_callback = NULL; helper->user_data = NULL; + modest_header_view_clear (v); + /* Rename. Camel handles folder subscription/unsubscription */ into = tny_folder_get_folder_store (folder); tny_folder_copy_async (folder, into, name, TRUE,