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:
parent
0c3160779e
commit
f6518b056c
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue