diff options
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r-- | src/empathy-accounts-dialog.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 65019142e..8ae8450e8 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -1236,6 +1236,7 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection, GtkTreeModel *model; GtkTreeIter iter; gboolean is_selection; + gboolean creating = FALSE; is_selection = gtk_tree_selection_get_selected (selection, &model, &iter); @@ -1245,8 +1246,14 @@ accounts_dialog_model_selection_changed (GtkTreeSelection *selection, if (settings != NULL) g_object_unref (settings); + if (priv->setting_widget_object != NULL) + { + g_object_get (priv->setting_widget_object, + "creating-account", &creating, NULL); + } + /* Update remove button sensitivity */ - gtk_widget_set_sensitive (priv->button_remove, is_selection); + gtk_widget_set_sensitive (priv->button_remove, is_selection && !creating); } static void |