diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/http-files/src/contact_titlebar_entry.vala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/http-files/src/contact_titlebar_entry.vala b/plugins/http-files/src/contact_titlebar_entry.vala index a87c7ddf..74966c0e 100644 --- a/plugins/http-files/src/contact_titlebar_entry.vala +++ b/plugins/http-files/src/contact_titlebar_entry.vala @@ -54,9 +54,12 @@ public class ConversationTitlebarWidget : Button, Plugins.ConversationTitlebarWi } public void on_upload_available(Account account) { - if (conversation.account.equals(account)) { - visible = true; - } + Idle.add(() => { + if (conversation != null && conversation.account.equals(account)) { + visible = true; + } + return false; + }); } public new void set_conversation(Conversation conversation) { |