]> git.0d.be Git - empathy.git/commitdiff
Fix creation of imported accounts (#609439)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 10 Feb 2010 11:46:11 +0000 (11:46 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 10 Feb 2010 13:58:40 +0000 (13:58 +0000)
impl_signal_apply isn't called any more after the "import" page as this page
as a 'next' button now.
So we have to create the imported accounts when preparing the next page.

src/empathy-account-assistant.c

index a7a142cb0f04f47e7046eae976f7f11a52e12e95..58ff1aa2c8933eb78fe637ca85fdf2d3205bea2e 100644 (file)
@@ -874,9 +874,6 @@ impl_signal_apply (GtkAssistant *assistant)
         account_assistant_apply_account_and_finish (self, priv->salut_settings);
       return;
     }
-
-  else if (current_page == PAGE_IMPORT)
-    empathy_import_widget_add_selected_accounts (priv->iw);
 }
 
 static void
@@ -893,6 +890,14 @@ impl_signal_prepare (GtkAssistant *assistant,
   EmpathyAccountAssistantPriv *priv = GET_PRIV (self);
   gint current_idx;
 
+  /* check from which page we are coming from */
+  switch (priv->current_page_id)
+    {
+      case PAGE_IMPORT:
+        empathy_import_widget_add_selected_accounts (priv->iw);
+        break;
+    }
+
   current_idx = gtk_assistant_get_current_page (assistant);
   priv->current_page_id = current_idx;