Commit 1ef5537
committed
Close splash screen instead of hiding it
With Qt 5, this fixes a bug where (on Linux at least) the entire program
closes if you click the X in the file dialog.
On Qt 6 things are much more broken without this commit. If the splash
screen is just hidden instead of closed, it keeps the application alive
indefinitely. So we must close the splash screen instead of hiding it to
use the automatic exiting feature. But with the way we were creating the
windows before, the other windows were descendants of the splash screen
for memory management purposes and closing the splash screen would
remove them. So I added a new global object to be the QObject parent for
other top-level windows.1 parent 53f93bb commit 1ef5537
2 files changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
219 | 224 | | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 168 | + | |
| 169 | + | |
174 | 170 | | |
175 | | - | |
176 | | - | |
177 | | - | |
| 171 | + | |
178 | 172 | | |
179 | 173 | | |
180 | 174 | | |
| |||
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
| 180 | + | |
186 | 181 | | |
187 | 182 | | |
0 commit comments