diff --git a/gramps/gui/plug/report/_bookdialog.py b/gramps/gui/plug/report/_bookdialog.py index fa9a766ce..dc466be61 100644 --- a/gramps/gui/plug/report/_bookdialog.py +++ b/gramps/gui/plug/report/_bookdialog.py @@ -959,7 +959,7 @@ class BookDialog(DocReportDialog): def make_document(self): """Create a document of the type requested by the user.""" - user = User() + user = User(uistate=self.uistate) self.rptlist = [] selected_style = StyleSheet() diff --git a/gramps/gui/plug/report/_reportdialog.py b/gramps/gui/plug/report/_reportdialog.py index 143cac23b..916b9c0fa 100644 --- a/gramps/gui/plug/report/_reportdialog.py +++ b/gramps/gui/plug/report/_reportdialog.py @@ -692,7 +692,7 @@ def report(dbstate, uistate, person, report_class, options_class, if response == Gtk.ResponseType.OK: dialog.close() try: - user = User() + user = User(uistate=uistate) MyReport = report_class(dialog.db, dialog.options, user) MyReport.doc.init() MyReport.begin_report() diff --git a/gramps/gui/user.py b/gramps/gui/user.py index fec9f38d4..046329e3c 100644 --- a/gramps/gui/user.py +++ b/gramps/gui/user.py @@ -67,7 +67,10 @@ class User(user.User): :type steps: int :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: self._progress.set_pass(message, steps, ProgressMeter.MODE_FRACTION) else: