projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4afc22e
)
* src/modest-mail-operation.c:
author
Jose Dapena Paz
<jdapena@igalia.com>
Tue, 17 Jul 2007 15:51:27 +0000
(15:51 +0000)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Tue, 17 Jul 2007 15:51:27 +0000
(15:51 +0000)
* Now it checks if there's no account already, and then cancel cannot
be run. Avoids a crash.
pmo-trunk-r2749
src/modest-mail-operation.c
patch
|
blob
|
history
diff --git
a/src/modest-mail-operation.c
b/src/modest-mail-operation.c
index
19274c6
..
70b0bdb
100644
(file)
--- a/
src/modest-mail-operation.c
+++ b/
src/modest-mail-operation.c
@@
-417,7
+417,8
@@
modest_mail_operation_cancel (ModestMailOperation *self)
/* Cancel the mail operation. We need to wrap it between this
start/stop operations to allow following calls to the
account */
- tny_account_cancel (priv->account);
+ if (priv->account)
+ tny_account_cancel (priv->account);
return canceled;
}