aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 20:59:35 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-03 21:42:06 +0800
commit9e0f0f529f363717fa0a2884fe576d8a26ed3df2 (patch)
treef6b8f9f98d9d7da2ec7a814ab1af97e29872b3ce /mail/em-composer-utils.c
parent7b32d2fb5a9576573ce47fb7d77624ede06bb6a8 (diff)
downloadgsoc2013-evolution-9e0f0f529f363717fa0a2884fe576d8a26ed3df2.tar.gz
gsoc2013-evolution-9e0f0f529f363717fa0a2884fe576d8a26ed3df2.tar.zst
gsoc2013-evolution-9e0f0f529f363717fa0a2884fe576d8a26ed3df2.zip
Drop 'folder_uri' param from em_utils_folder_is_drafts().
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 31a40293e4..68d5c004d7 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1138,14 +1138,13 @@ edit_message (EShell *shell,
composer = e_msg_composer_new_with_message (shell, message, NULL);
- if (message_uid != NULL) {
+ if (message_uid != NULL && em_utils_folder_is_drafts (folder)) {
const gchar *folder_uri;
folder_uri = camel_folder_get_uri (folder);
- if (em_utils_folder_is_drafts (folder, folder_uri))
- e_msg_composer_set_draft_headers (
- composer, folder_uri, message_uid);
+ e_msg_composer_set_draft_headers (
+ composer, folder_uri, message_uid);
}
composer_set_no_change (composer);