mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix potential error in mission waiting for results window.
This commit is contained in:
parent
23537211b0
commit
b5893ce521
@ -119,7 +119,10 @@ class QWaitingForMissionResultWindow(QDialog):
|
|||||||
|
|
||||||
# Clear previous content of the window
|
# Clear previous content of the window
|
||||||
for i in reversed(range(self.gridLayout.count())):
|
for i in reversed(range(self.gridLayout.count())):
|
||||||
self.gridLayout.itemAt(i).widget().setParent(None)
|
try:
|
||||||
|
self.gridLayout.itemAt(i).widget().setParent(None)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# Set new window content
|
# Set new window content
|
||||||
self.gridLayout.addWidget(updateBox, 0, 0)
|
self.gridLayout.addWidget(updateBox, 0, 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user