# HG changeset patch # User Stu Tomlinson # Date 1181506980 0 # Node ID 91460e381dbc725dd1722da476c0a766c53ff6e1 # Parent 43da9c881fe9b574b77dc573fc07b8813e62b2a3 Prevent the Buddy Notes plugin from offering to edit notes on a buddy list node that is not going to be saved diff -r 43da9c881fe9 -r 91460e381dbc libpurple/plugins/buddynote.c --- a/libpurple/plugins/buddynote.c Sun Jun 10 20:00:25 2007 +0000 +++ b/libpurple/plugins/buddynote.c Sun Jun 10 20:23:00 2007 +0000 @@ -58,6 +58,9 @@ { PurpleMenuAction *bna = NULL; + if (purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE) + return; + *m = g_list_append(*m, bna); bna = purple_menu_action_new(_("Edit Notes..."), PURPLE_CALLBACK(buddynote_edit_cb), NULL, NULL); *m = g_list_append(*m, bna);