diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-07 17:07:57 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-07 17:09:32 +0800 |
commit | 744fa348bf3f157b95af77446ff2b4440554bf2e (patch) | |
tree | f8a4c392d5077c8ebdb72f4a3a09362a4a677581 /src | |
parent | c786f765510f4796153f23b7c6cd549e1d6a2a6c (diff) | |
download | gsoc2013-empathy-744fa348bf3f157b95af77446ff2b4440554bf2e.tar.gz gsoc2013-empathy-744fa348bf3f157b95af77446ff2b4440554bf2e.tar.zst gsoc2013-empathy-744fa348bf3f157b95af77446ff2b4440554bf2e.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | 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 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); |