From 09199c0a59439fd623af0b60f98fac9cbce4c2a3 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 30 Aug 2013 22:13:44 +0800 Subject: Fix "Open with" problem "Open with" functions are broken after I integrated archives extraction into attachment saving. This commit fixes the problem caused by the commit: c44b5c5cd564134755eba7904b2efb894c2ea513. --- e-util/e-attachment.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'e-util/e-attachment.c') 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) -- cgit