From f2abf6e4c27f08afd222993110e50de5956876d8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 15 Dec 2009 16:48:03 +0000 Subject: [PATCH] Removed hacky flag; don't know why it was needed svn: r13811 --- src/QuickReports.py | 4 ---- src/Simple/_SimpleTable.py | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) 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