]> git.0d.be Git - empathy.git/commitdiff
If there is a failure in recognizing the protocol name, fallback to the generic UI
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 17 Aug 2009 12:11:20 +0000 (13:11 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 17 Aug 2009 12:11:20 +0000 (13:11 +0100)
libempathy-gtk/empathy-account-widget.c

index 6d5b2b279d4a2a5ada70a1767faf28d200727f2b..feb5b6d848a6d0a585a6f3d9994f7442c75b1cee 100644 (file)
@@ -785,15 +785,8 @@ do_constructed (GObject *obj)
     empathy_account_widget_irc_build (self, filename);
   else if (!tp_strdiff (priv->protocol, "sip"))
     empathy_account_widget_sip_build (self, filename);
-  else if (!tp_strdiff (priv->protocol, "generic"))
-    account_widget_build_generic (self, filename);
   else
-    {
-      g_free (uiname);
-      g_free (filename);
-      g_critical ("Unknown protocol, can't build the account widget");
-      return;
-    }
+    account_widget_build_generic (self, filename);
 
   g_free (uiname);
   g_free (filename);