Import doesn't happen if another window's close button is clicked while the import dialog is up
It appears that Inkscape enters into some faulty state when the "X" button (on the titlebar, used to close a window) is clicked while the file import dialog is open for another Inkscape window. When this happens, Inkscape fails to import the file selected in the import dialog afterwards – the dialog closes but nothing happens.
Steps to reproduce:
- Open Inkscape, which will create a new document "New Document 1".
- Select File→New which opens a new window with "New Document 2".
- In the second window, select File→Import to open the import dialog.
- With the import dialog open, go back to the first window (New Document 1) and try to close it with the "X" button on the title bar (tested on KDE Plasma).
- Go back to New Document 2, or rather its import dialog, choose any SVG file to import, and press "Open" in the dialog.
What happened?
The first window (New Document 1) doesn't process the event generated by the click on the "X" button and remains open. After entering this condition, the import in the second document window doesn't work – after selecting the SVG file to import and pressing "Open", nothing happens.
What should have happened?
The SVG file should have been imported into "New Document 2". Whether the first window should have closed is a design decision, but I personally believe that it should, because the modal dialog had a different parent, so there's no reason to ignore the first window's events.
Inkscape Version and Operating System:
- Inkscape Version: 1.1
- Operating System: Linux
- Operating System version: Archlinux kernel 5.12.7-arch1-1, KDE Plasma version 5.21.5