1.1 --- a/treeitem.cpp Wed May 13 08:26:27 2009 +0000
1.2 +++ b/treeitem.cpp Thu May 14 12:42:58 2009 +0000
1.3 @@ -337,9 +337,10 @@
1.4 systemFlags.deactivate ("system-note");
1.5 }
1.6
1.7 -void TreeItem::setNoteObj(const NoteObj &n, bool updateNoteEditor)
1.8 +void TreeItem::setNoteObj(const NoteObj &n, bool updateNoteEditor) //FIXME-1 setNoteObj is called for every select or so???
1.9 {
1.10 note=n;
1.11 + cout << "TI::setNoteObj of "<<getHeadingStd()<<endl;
1.12 if (!note.isEmpty() && !systemFlags.isActive ("system-note"))
1.13 systemFlags.activate ("system-note");
1.14 if (note.isEmpty() && systemFlags.isActive ("system-note"))
1.15 @@ -351,6 +352,11 @@
1.16 return note.getNote();
1.17 }
1.18
1.19 +bool TreeItem::hasEmptyNote()
1.20 +{
1.21 + return note.isEmpty();
1.22 +}
1.23 +
1.24 NoteObj TreeItem::getNoteObj()
1.25 {
1.26 return note;