diff finch/gntaccount.c @ 19133:c6282dc3fb9f

propagate from branch 'im.pidgin.pidgin' (head 6521407fd5a6d9175e6532a874a2735658c113e9) to branch 'im.pidgin.soc.2007.finchfeat' (head 47dd316bb08a5320b3e606960fd08c7678429657)
author Eric Polino <aluink@pidgin.im>
date Thu, 05 Jul 2007 02:41:26 +0000
parents f5a17e7e4bfa
children 7ee0e0597a26
line wrap: on
line diff
--- a/finch/gntaccount.c	Thu Jul 05 02:34:30 2007 +0000
+++ b/finch/gntaccount.c	Thu Jul 05 02:41:26 2007 +0000
@@ -472,6 +472,14 @@
 		}
 	}
 
+	list = purple_plugins_get_protocols();
+	if (list == NULL) {
+		purple_notify_error(NULL, _("Error"),
+				_("There's no protocol plugins installed."),
+				_("(You probably forgot to 'make install'.)"));
+		return;
+	}
+
 	dialog = g_new0(AccountEditDialog, 1);
 	accountdialogs = g_list_prepend(accountdialogs, dialog);
 
@@ -489,7 +497,6 @@
 	gnt_box_add_widget(GNT_BOX(window), hbox);
 
 	dialog->protocol = combo = gnt_combo_box_new();
-	list = purple_plugins_get_protocols();
 	for (iter = list; iter; iter = iter->next)
 	{
 		gnt_combo_box_add_data(GNT_COMBO_BOX(combo), iter->data,