Commit 23aef2f
committed
Use standard method for closing QApp when last window is closed.
setQuitOnLastWindowClosed(True) should be equivalent to
lastWindowClosed.connect(quit), but is more introspectable (e.g.
third-parties can check the value of quitOnLastWindowClosed()).
AFAICT the code used lastWindowClosed.connect(quit) because it dates
back to Qt3, where setQuitOnLastWindowClosed did not exist yet.1 parent 852f121 commit 23aef2f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments