Only show unattached notes in note view

svn: r8981
This commit is contained in:
Benny Malengier
2007-09-16 12:14:16 +00:00
parent cd1d69fe12
commit fe5b0aa03d
3 changed files with 67 additions and 0 deletions

View File

@@ -221,6 +221,10 @@ class BaseModel(gtk.GenericTreeModel):
return [ x[1] for x in self.sort_data ]
def _rebuild_search(self,ignore=None):
""" function called when view must be build, given a search text
in the top search bar
Remark: this method is overridden in NoteModel !
"""
self.total = 0
if self.db.is_open():
if self.search and self.search.text:
@@ -237,6 +241,10 @@ class BaseModel(gtk.GenericTreeModel):
self.node_map.clear_map()
def _rebuild_filter(self, ignore=None):
""" function called when view must be build, given filter options
in the filter sidebar
Remark: this method is overridden in NoteModel !
"""
self.total = 0
if self.db.is_open():
if self.search: