Further optimization in the flatbasemodel:
* keep list of all possible keys in memory so database is no longer touched
for the searches. ==> a search is faster
* bug fixes to previous patch set: show total and displayed number correctly
svn: r12726
This commit is contained in:
@@ -109,6 +109,9 @@ class EventView(PageView.ListView):
|
||||
Config.client.notify_add("/apps/gramps/interface/filter",
|
||||
self.filter_toggle)
|
||||
|
||||
def column_ord_setfunc(self, clist):
|
||||
self.dbstate.db.set_event_column_order(clist)
|
||||
|
||||
def get_bookmarks(self):
|
||||
"""
|
||||
Return the bookmark object
|
||||
@@ -209,10 +212,6 @@ class EventView(PageView.ListView):
|
||||
EventView.COLUMN_NAMES,
|
||||
self.set_column_order)
|
||||
|
||||
def set_column_order(self, clist):
|
||||
self.dbstate.db.set_event_column_order(clist)
|
||||
self.build_columns()
|
||||
|
||||
def add(self, obj):
|
||||
try:
|
||||
EditEvent(self.dbstate, self.uistate, [], gen.lib.Event())
|
||||
|
||||
Reference in New Issue
Block a user