Skip to content

Triggering Set Number dialog causes Configure Page Labels dialog to prematurely close (Windows) #1736

@chenzw95

Description

@chenzw95

On Windows, while cycling through the "Number" column in the Configure Page Labels dialog, when the Set Number / Enter Page Number dialog is triggered, the parent Configure Page Labels dialog closes prematurely.

This leads to a situation where the user enters a custom page number, clicks Ok, and ends up needing to re-open the Configure Page Labels dialog again.

This bug happens even if the user clicks Cancel on the Set Number dialog (parent Configure Page Labels closes first prematurely), and does not happen on macOS.

I am not 100% sure if is the correct fix, but I managed to solve this in my tests by modifying L1535 of src/guiguts/widgets.py, originally self.transient(root()), to point towards the widget's parent window instead:

self.transient(parent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions