[empathy] accounts_dialog_update_settings: fix if no account is selected



commit 744fa348bf3f157b95af77446ff2b4440554bf2e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Sep 7 11:07:57 2012 +0200

    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 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 77d299a..cb8c7f7 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]