pidgin: 063e6f02: Don't try to retrieve the chat_info_defa...
datallah at pidgin.im
datallah at pidgin.im
Tue Jun 3 19:55:55 EDT 2008
-----------------------------------------------------------------
Revision: 063e6f02d54f6eb42d15298770197427c72faeaa
Ancestor: b0957c844e0c179881aa1c05ed36599aec5a9f22
Author: datallah at pidgin.im
Date: 2008-06-03T23:51:12
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/063e6f02d54f6eb42d15298770197427c72faeaa
Modified files:
pidgin/gtkconv.c
ChangeLog:
Don't try to retrieve the chat_info_defaults while signed off, it tends to
crash.
-------------- next part --------------
============================================================
--- pidgin/gtkconv.c 212abae85406357af5621522a8a389899e8628dc
+++ pidgin/gtkconv.c f656bee349ca2844b43247a872078617dd2e7de6
@@ -3156,7 +3156,8 @@ populate_menu_with_options(GtkWidget *me
PurpleAccount *account = purple_conversation_get_account(conv);
PurplePlugin *prpl = purple_find_prpl(purple_account_get_protocol_id(account));
PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(prpl);
- if (PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, chat_info_defaults)) {
+ if (purple_account_get_connection(account) != NULL &&
+ PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, chat_info_defaults)) {
components = prpl_info->chat_info_defaults(purple_account_get_connection(account),
purple_conversation_get_name(conv));
} else {
More information about the Commits
mailing list