]> git.0d.be Git - empathy.git/commitdiff
Don't automagically remove invalid accounts
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 19 Aug 2009 11:22:58 +0000 (12:22 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 19 Aug 2009 11:56:37 +0000 (12:56 +0100)
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.

src/empathy-accounts-dialog.c

index f027eccc01a2877587c3b44d017ae3d92630d9db..f74de13a965a150a2ca5b4de175077f79d9ee895 100644 (file)
@@ -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