Comment 3 for bug 664963

Revision history for this message
Sandy Armstrong (sanfordarmstrong) wrote : Re: Tomboy shows templates as notes

Yeah, this is clearly a bug in the patch:

++ var menuItems = manager.Notes
++ .Where (n => !n.IsSpecial)
++ .OrderByDescending (n => n.ChangeDate)
++ .Take (10)
++ .Select (n => new NoteMenuItem (n, n.IsPinned))
++ .ToArray ();

There is no check at all for whether the note is a template. You guys need to add something like:

Tag template_tag = TagManager.GetOrCreateSystemTag (TagManager.TemplateNoteSystemTag);

and change the Where clause to:

++ .Where (n => !n.IsSpecial && !n.ContainsTag(template_tag))