From 8b24044e2bdeec4e282339c78d4eff9050cf964c Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 17 Aug 2009 13:11:20 +0100 Subject: If there is a failure in recognizing the protocol name, fallback to the generic UI --- libempathy-gtk/empathy-account-widget.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libempathy-gtk/empathy-account-widget.c') diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 6d5b2b279..feb5b6d84 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -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); -- cgit v1.2.3