From 744fa348bf3f157b95af77446ff2b4440554bf2e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 7 Sep 2012 11:07:57 +0200 Subject: accounts_dialog_update_settings: fix if no account is selected The logic changed if no account is selected as new account are now added using a separated dialog. So if no account is selected we can certainly add a new account but not remove anything. https://bugzilla.gnome.org/show_bug.cgi?id=683442 --- src/empathy-accounts-dialog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 77d299a34..cb8c7f784 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -930,9 +930,10 @@ accounts_dialog_update_settings (EmpathyAccountsDialog *dialog, return; } - /* No account and no profile, warn the user */ + /* No account selected */ gtk_widget_hide (priv->vbox_details); - gtk_widget_set_sensitive (priv->button_add, FALSE); + gtk_widget_set_sensitive (priv->button_add, TRUE); + gtk_widget_set_sensitive (priv->button_remove, FALSE); gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook_account), NOTEBOOK_PAGE_NO_PROTOCOL); -- cgit v1.2.3