Fix potential error in mission waiting for results window.

This commit is contained in:
Khopa 2020-08-10 17:56:30 +02:00
parent 23537211b0
commit b5893ce521

View File

@ -119,7 +119,10 @@ class QWaitingForMissionResultWindow(QDialog):
# Clear previous content of the window
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
self.gridLayout.addWidget(updateBox, 0, 0)