projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* coverity fixes: remove unused params, dead code
[modest]
/
src
/
modest-mail-operation.c
diff --git
a/src/modest-mail-operation.c
b/src/modest-mail-operation.c
index
dc4df3e
..
3a1384f
100644
(file)
--- a/
src/modest-mail-operation.c
+++ b/
src/modest-mail-operation.c
@@
-871,7
+871,7
@@
modest_mail_operation_save_to_drafts_add_msg_cb(TnyFolder *self,
g_error_free(priv->error);
}
g_error_free(priv->error);
}
- priv->error = g_error_copy(err);
+ priv->error = (err == NULL) ? NULL : g_error_copy(err);
if ((!priv->error) && (info->draft_msg != NULL)) {
TnyHeader *header = tny_msg_get_header (info->draft_msg);
if ((!priv->error) && (info->draft_msg != NULL)) {
TnyHeader *header = tny_msg_get_header (info->draft_msg);
@@
-1200,8
+1200,9
@@
idle_notify_queue (gpointer data)
{
ModestMailOperation *mail_op = MODEST_MAIL_OPERATION (data);
{
ModestMailOperation *mail_op = MODEST_MAIL_OPERATION (data);
- /* Do not need to block, the notify end will do it for us */
+ gdk_threads_enter ();
modest_mail_operation_notify_end (mail_op);
modest_mail_operation_notify_end (mail_op);
+ gdk_threads_leave ();
g_object_unref (mail_op);
return FALSE;
g_object_unref (mail_op);
return FALSE;