Fix critical warning when changing conversations rapidly. Bug 714509.

* src/client/conversation-viewer/conversation-viewer.vala
  (ConversationViewer::select_conversation_async): Ensure loading
  has not been cancelled after yielding to the list_full_messages_async
  call before attempting to add the messages.
This commit is contained in:
Michael James Gratton 2016-08-02 13:46:25 +10:00
parent 0c3160779e
commit f6518b056c

View file

@ -507,6 +507,10 @@ public class ConversationViewer : Gtk.Box {
Gee.Collection<Geary.Email>? messages_to_add
= yield list_full_messages_async(conversation.get_emails(
Geary.App.Conversation.Ordering.SENT_DATE_ASCENDING), cancellable);
if (cancellable.is_cancelled()) {
return;
}
// Add messages.
if (messages_to_add != null) {