aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-19 19:22:58 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-19 19:56:37 +0800
commiteaac8d0b0724b90e6891ae69c3c8937861b8cdc9 (patch)
tree49cbcc747e957d85806c3a1a6119114c062c2e56 /src
parent27e11ea6e41c5b2498307d581caa751936de30f1 (diff)
downloadgsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar.gz
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar.bz2
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar.lz
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar.xz
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.tar.zst
gsoc2013-empathy-eaac8d0b0724b90e6891ae69c3c8937861b8cdc9.zip
Don't automagically remove invalid accounts
Automagic removal is slightly terrifying, if the user succeeded in creating the account it must have been valid at some point. So leave it there, the UI should indicate that there is a problem with the account so that the user can fix it instead.
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index f027eccc0..f74de13a9 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1135,31 +1135,8 @@ accounts_dialog_response_cb (GtkWidget *widget,
gint response,
EmpathyAccountsDialog *dialog)
{
- GList *accounts, *l;
- EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog);
-
if (response == GTK_RESPONSE_CLOSE)
- {
- /* Delete incomplete accounts */
- accounts = empathy_account_manager_dup_accounts
- (priv->account_manager);
- for (l = accounts; l; l = l->next)
- {
- EmpathyAccount *account;
-
- account = l->data;
- if (!empathy_account_is_valid (account))
- /* FIXME: Warn the user the account is not
- * complete and is going to be removed.
- */
- empathy_account_remove_async (account, NULL, NULL);
-
- g_object_unref (account);
- }
- g_list_free (accounts);
-
- gtk_widget_destroy (widget);
- }
+ gtk_widget_destroy (widget);
}
static void