8666: statistics report does not run (filter?)
This commit is contained in:
parent
a8da5e869c
commit
c2d1ff911b
@ -959,7 +959,7 @@ class BookDialog(DocReportDialog):
|
|||||||
|
|
||||||
def make_document(self):
|
def make_document(self):
|
||||||
"""Create a document of the type requested by the user."""
|
"""Create a document of the type requested by the user."""
|
||||||
user = User()
|
user = User(uistate=self.uistate)
|
||||||
self.rptlist = []
|
self.rptlist = []
|
||||||
selected_style = StyleSheet()
|
selected_style = StyleSheet()
|
||||||
|
|
||||||
|
@ -692,7 +692,7 @@ def report(dbstate, uistate, person, report_class, options_class,
|
|||||||
if response == Gtk.ResponseType.OK:
|
if response == Gtk.ResponseType.OK:
|
||||||
dialog.close()
|
dialog.close()
|
||||||
try:
|
try:
|
||||||
user = User()
|
user = User(uistate=uistate)
|
||||||
MyReport = report_class(dialog.db, dialog.options, user)
|
MyReport = report_class(dialog.db, dialog.options, user)
|
||||||
MyReport.doc.init()
|
MyReport.doc.init()
|
||||||
MyReport.begin_report()
|
MyReport.begin_report()
|
||||||
|
@ -67,7 +67,10 @@ class User(user.User):
|
|||||||
:type steps: int
|
:type steps: int
|
||||||
:returns: none
|
:returns: none
|
||||||
"""
|
"""
|
||||||
self._progress = ProgressMeter(title)
|
if self.uistate:
|
||||||
|
self._progress = ProgressMeter(title, parent=self.uistate.window)
|
||||||
|
else:
|
||||||
|
self._progress = ProgressMeter(title)
|
||||||
if steps > 0:
|
if steps > 0:
|
||||||
self._progress.set_pass(message, steps, ProgressMeter.MODE_FRACTION)
|
self._progress.set_pass(message, steps, ProgressMeter.MODE_FRACTION)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user