aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index b146f3838..8f5397912 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -2236,7 +2236,9 @@ maybe_show_salut_dialog (EmpathyAccountsDialog *self)
button = gtk_dialog_add_button (GTK_DIALOG (dialog),
_("_Connect"), GTK_RESPONSE_YES);
- gtk_widget_set_sensitive (button, FALSE);
+ gtk_widget_set_sensitive (button,
+ empathy_local_xmpp_assistant_widget_is_valid (
+ EMPATHY_LOCAL_XMPP_ASSISTANT_WIDGET (widget)));
g_signal_connect (widget, "valid", G_CALLBACK (salut_valid_cb),
button);