Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printing of Books #1770

Open
wants to merge 1 commit into
base: maintenance/gramps52
Choose a base branch
from

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Sep 9, 2024

As noted in the original issue, PR#372 changed GtkPrint to try to parent its window via self.uistate, set in its constructor.

In DocReportDialog.make_document, the uistate argument is passed to the format class, but BookDialog overrides that method and is missing that argument, causing the GtkPrint.uistate to remain None. This allowed the 'Print...' option to work in plain Reports, but not Books.

Fixes #12804

As noted in the original issue, PR#372 changed `GtkPrint` to try to
parent its window via `self.uistate`, set in its constructor.

In `DocReportDialog.make_document`, the `uistate` argument is passed to
the format class, but `BookDialog` overrides that method and is missing
that argument, causing the `GtkPrint.uistate` to remain `None`. This
allows the 'Print...' option to work in plain Reports, but not Books.

Fixes #12804
Copy link
Member

@hgohel hgohel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this bug.

@Nick-Hall Nick-Hall added the bug label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants