Commit 72d623e
authored
Explicit modality set when "New..." is selected
The popup that happens for entering a category when "New..." is selected is currently NOT modal, despite line 14 stating "modal=True"
I tested it on Ubuntu, Windows 10 and macOS (Big Sur). All of them showed the category dialog and you could put in the background and return to the main calendar window, which wouldn't be the correct behavior.
Adding this line before the show command:
self.setWindowModality(qtc.Qt.ApplicationModal)
Makes it so the Category dialog is modal.
Tested on Windows, Ubuntu, and macOS.1 parent 9aaddfe commit 72d623e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments