From b29d52fddae832d275e66dbd1b494e06ce11d0da Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 9 Aug 2017 20:44:15 +0200 Subject: SRV records for XMPP over TLS --- plugins/http-files/src/contact_titlebar_entry.vala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/http-files') 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) { -- cgit v1.2.3-70-g09d2