mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Guard against null squadron in flight creator.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2323
This commit is contained in:
parent
622e5d65aa
commit
a54c217f88
@ -115,9 +115,7 @@ class QFlightCreator(QDialog):
|
|||||||
tooltip="Selects the start type for this flight.",
|
tooltip="Selects the start type for this flight.",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
squadron: Squadron = self.squadron_selector.currentData()
|
if squadron is not None and isinstance(squadron.location, OffMapSpawn):
|
||||||
home_base: ControlPoint = squadron.location
|
|
||||||
if isinstance(home_base, OffMapSpawn):
|
|
||||||
self.start_type.setCurrentText(StartType.IN_FLIGHT.value)
|
self.start_type.setCurrentText(StartType.IN_FLIGHT.value)
|
||||||
self.start_type.setEnabled(False)
|
self.start_type.setEnabled(False)
|
||||||
layout.addWidget(
|
layout.addWidget(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user