diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-10 07:58:52 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-10 07:58:52 +0800 |
commit | 91cc2f264eca81563176b2a7e21c87e82dacbb8c (patch) | |
tree | ab9c3209a248bc552462409ba787dd88169f0dbd /mail/mail-callbacks.c | |
parent | 3e4aed06dbb3c38fbbb0e9f0dd94fd52e27df19b (diff) | |
download | gsoc2013-evolution-91cc2f264eca81563176b2a7e21c87e82dacbb8c.tar.gz gsoc2013-evolution-91cc2f264eca81563176b2a7e21c87e82dacbb8c.tar.zst gsoc2013-evolution-91cc2f264eca81563176b2a7e21c87e82dacbb8c.zip |
Added a g_assert_not_reached() - I'm hoping this will help us track down
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
* message-list.c (mlfe_callback): Added a g_assert_not_reached() -
I'm hoping this will help us track down the "can't delete message
sometimes" (ie bug #6637 and friends) bugs that users have been
reporting. If herein lies the problem, then we can expect some
crashes and some good backtraces, hopefully.
svn path=/trunk/; revision=11854
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index fd4b47e8ed..99d7444c94 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1199,7 +1199,7 @@ invert_selection (BonoboUIComponent *uih, void *user_data, const char *path) /* flag all selected messages. Return number flagged */ static int -flag_messages(FolderBrowser *fb, guint32 mask, guint32 set) +flag_messages (FolderBrowser *fb, guint32 mask, guint32 set) { MessageList *ml = fb->message_list; GPtrArray *uids; @@ -1219,7 +1219,7 @@ flag_messages(FolderBrowser *fb, guint32 mask, guint32 set) camel_folder_thaw (ml->folder); g_ptr_array_free (uids, TRUE); - + return i; } @@ -1547,15 +1547,15 @@ delete_msg (GtkWidget *button, gpointer user_data) { FolderBrowser *fb = FOLDER_BROWSER (user_data); int deleted, row; - + deleted = flag_messages (fb, CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_SEEN); - + /* Select the next message if we are only deleting one message */ - if (deleted == 1) { + if (deleted) { row = e_tree_row_of_node (fb->message_list->tree, e_tree_get_cursor (fb->message_list->tree)); - + /* If this is the last message and deleted messages are hidden, select the previous */ if ((row+1 == e_tree_row_count (fb->message_list->tree)) |