projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c5468a
)
Clearing the folder before rename
author
Philip Van Hoof
<philip@codeminded.be>
Wed, 11 Jul 2007 14:15:11 +0000
(14:15 +0000)
committer
Philip Van Hoof
<philip@codeminded.be>
Wed, 11 Jul 2007 14:15:11 +0000
(14:15 +0000)
pmo-trunk-r2699
src/modest-mail-operation.c
patch
|
blob
|
history
diff --git
a/src/modest-mail-operation.c
b/src/modest-mail-operation.c
index
26c8c94
..
009b11e
100644
(file)
--- 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 "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
#define KB 1024
#define GET_SIZE_BUFFER_SIZE 128
@@
-1756,6
+1758,10
@@
modest_mail_operation_rename_folder (ModestMailOperation *self,
} else {
TnyFolderStore *into;
} 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);
/* 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;
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,
/* Rename. Camel handles folder subscription/unsubscription */
into = tny_folder_get_folder_store (folder);
tny_folder_copy_async (folder, into, name, TRUE,