aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index b62702bbd7..a7b56e7fcb 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -1982,8 +1982,12 @@ emft_popup_refresh_folder (EPopup *ep, EPopupItem *pitem, gpointer data)
EMFolderTree *emft = data;
CamelFolder *folder;
- if ((folder = em_folder_tree_get_selected_folder (emft)) != NULL)
+ if ((folder = em_folder_tree_get_selected_folder (emft)) != NULL) {
+ EMEvent *e = em_event_peek();
+ EMEventTargetFolder *t = em_event_target_new_folder(e, folder->full_name, 0);
+ e_event_emit((EEvent *)e, "folder.refresh", (EEventTarget *)t);
mail_refresh_folder(folder, NULL, NULL);
+ }
}
static void