]> git.0d.be Git - empathy.git/commitdiff
accounts_dialog_update_settings: fix if no account is selected
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 7 Sep 2012 09:07:57 +0000 (11:07 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 7 Sep 2012 09:09:32 +0000 (11:09 +0200)
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

index 77d299a34a657b243c74462c6d29292e62f471f9..cb8c7f7845aded2abe35f9a5648c568787c80b8e 100644 (file)
@@ -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);