Removed hacky flag; don't know why it was needed
svn: r13811
This commit is contained in:
parent
cfec1b2092
commit
f2abf6e4c2
@ -191,10 +191,6 @@ def run_report(dbstate, uistate, category, handle, pdata, container=None,
|
||||
d = TextBufDoc(make_basic_stylesheet(), None)
|
||||
d.dbstate = dbstate
|
||||
d.uistate = uistate
|
||||
if container:
|
||||
d.change_active = False
|
||||
else:
|
||||
d.change_active = True
|
||||
if isinstance(handle, basestring): # a handle
|
||||
if category == CATEGORY_QR_PERSON :
|
||||
obj = dbstate.db.get_person_from_handle(handle)
|
||||
|
@ -168,9 +168,8 @@ class SimpleTable(object):
|
||||
elif self.__link[index]:
|
||||
objclass, handle = self.__link[index]
|
||||
if objclass == 'Person':
|
||||
if self.simpledoc.doc.change_active:
|
||||
person = self.access.dbase.get_person_from_handle(handle)
|
||||
self.simpledoc.doc.dbstate.change_active_person(person)
|
||||
person = self.access.dbase.get_person_from_handle(handle)
|
||||
self.simpledoc.doc.dbstate.change_active_person(person)
|
||||
return True
|
||||
return False # didn't handle event
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user