diff --git a/src/QuickReports.py b/src/QuickReports.py index f1ecbe66c..e983d040e 100644 --- a/src/QuickReports.py +++ b/src/QuickReports.py @@ -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) diff --git a/src/Simple/_SimpleTable.py b/src/Simple/_SimpleTable.py index f97913d85..65850cbf2 100644 --- a/src/Simple/_SimpleTable.py +++ b/src/Simple/_SimpleTable.py @@ -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