* On deleting messages from viewer, if there's no next message
or user cancels retrieving next message, we close the window
(fixes NB#64684).
* src/modest-mail-operation.c:
* Get the TnyCamelMemStream type before opening threads so that
we don't get the initial type in parallel from two threads
(due to a possible thread problem in gtype system).
pmo-trunk-r2872
info->callback = user_callback;
info->userdata = user_data;
+ tny_camel_mem_stream_get_type ();
+
thread = g_thread_create (get_mime_part_size_thread, info, FALSE, NULL);
}
modest_msg_view_window_first_message_selected (win)) {
modest_ui_actions_on_close_window (NULL, MODEST_WINDOW (win));
} else {
- modest_msg_view_window_select_next_message (win);
+ if (!modest_msg_view_window_select_next_message (win)) {
+ gboolean ret_value;
+ g_signal_emit_by_name (G_OBJECT (win), "delete-event", NULL, &ret_value);
+ }
}
}