Mercurial > pidgin.yaz
changeset 17823:91460e381dbc
Prevent the Buddy Notes plugin from offering to edit notes on a buddy list
node that is not going to be saved
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 10 Jun 2007 20:23:00 +0000 |
parents | 43da9c881fe9 |
children | b1754db7010b |
files | libpurple/plugins/buddynote.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);