Really fix (?) critical warning when changing conversations rapidly.

Commit f6518b0 relied on the load being cancelled, which only happens if
you change conversation, not folder. Changing the foldler will eventually
change the conversation, but not after a nnumber of async calls.

Bug 714509.

* src/client/conversation-viewer/conversation-viewer.vala
  (ConversationViewer::on_folder_selected): Cancel existing load before
  preceeding.
This commit is contained in:
Michael James Gratton 2016-08-02 22:32:50 +10:00
parent f6518b056c
commit 4a893e4708

View file

@ -419,6 +419,7 @@ public class ConversationViewer : Gtk.Box {
private void on_folder_selected(Geary.Folder? folder) {
hide_special_message();
cancel_load();
current_folder = folder;
email_store = (current_folder == null ? null : new Geary.App.EmailStore(current_folder.account));