aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index b3e9ca92fe..1943d99941 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -626,10 +626,12 @@ emfb_empty_trash(BonoboUIComponent *uid, void *data, const char *path)
static void
emfb_mail_compose(BonoboUIComponent *uid, void *data, const char *path)
{
- if (!em_utils_check_user_can_send_mail((GtkWidget *)data))
+ EMFolderView *emfv = data;
+
+ if (!em_utils_check_user_can_send_mail((GtkWidget *)emfv))
return;
- em_utils_compose_new_message ();
+ em_utils_compose_new_message(emfv->folder_uri);
}
static void