diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2009-11-09 15:10:34 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchenthill@novell.com> | 2009-11-09 15:59:37 +0800 |
commit | 2e374c1dd51272e9eeeb4b233f777f60540968dd (patch) | |
tree | e3ac32e38d4ef7e8c6910d0bfed4bd03a192af8d | |
parent | d7b621928b9e45308702024c5aedf61e3efb2803 (diff) | |
download | gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar.gz gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar.bz2 gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar.lz gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar.xz gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.tar.zst gsoc2013-evolution-2e374c1dd51272e9eeeb4b233f777f60540968dd.zip |
Bug #557613 - evolution crashed with SIGSEGV in try_open_e_book_cb()
-rw-r--r-- | mail/em-utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 95cef7577d..4bb6ef4290 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -2076,9 +2076,10 @@ try_open_e_book (EBook *book, gboolean only_if_exists, GError **error) if (canceled) { g_clear_error (error); g_set_error (error, E_BOOK_ERROR, E_BOOK_ERROR_CANCELLED, "Operation has been canceled."); - e_book_cancel_async_op (book, NULL); - /* it had been canceled, the above callback may not be called, thus setting flag here */ - e_flag_set (flag); + /* if the operation is cancelled sucessfully set the flag else wait. file, groupwise,.. backend's operations + are not cancellable */ + if (e_book_cancel_async_op (book, NULL)) + e_flag_set (flag); } e_flag_wait (flag); |