aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/e-attachment.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/e-util/e-attachment.c b/e-util/e-attachment.c
index 4c7a0e6ef6..0ad9076134 100644
--- a/e-util/e-attachment.c
+++ b/e-util/e-attachment.c
@@ -3387,6 +3387,10 @@ e_attachment_save_async (EAttachment *attachment,
save_context = attachment_save_context_new (
attachment, callback, user_data);
+ /* No task is not allowed. */
+ if (!attachment->priv->save_self && !attachment->priv->save_extracted)
+ attachment->priv->save_self = TRUE;
+
if (attachment->priv->save_self)
save_context->total_tasks++;
if (attachment->priv->save_extracted)