mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix bug in earlier bugfix -_-
This commit is contained in:
parent
779f66670f
commit
b61f625828
@ -84,10 +84,12 @@ class QFlightCreator(QDialog):
|
|||||||
self.update_max_size(self.squadron_selector.aircraft_available)
|
self.update_max_size(self.squadron_selector.aircraft_available)
|
||||||
layout.addLayout(QLabeledWidget("Size:", self.flight_size_spinner))
|
layout.addLayout(QLabeledWidget("Size:", self.flight_size_spinner))
|
||||||
|
|
||||||
|
required_start_type = None
|
||||||
squadron = self.squadron_selector.currentData()
|
squadron = self.squadron_selector.currentData()
|
||||||
if squadron is None:
|
if squadron is None:
|
||||||
roster = None
|
roster = None
|
||||||
else:
|
else:
|
||||||
|
required_start_type = squadron.location.required_aircraft_start_type
|
||||||
roster = FlightRoster(
|
roster = FlightRoster(
|
||||||
squadron, initial_size=self.flight_size_spinner.value()
|
squadron, initial_size=self.flight_size_spinner.value()
|
||||||
)
|
)
|
||||||
@ -116,7 +118,6 @@ class QFlightCreator(QDialog):
|
|||||||
tooltip="Selects the start type for this flight.",
|
tooltip="Selects the start type for this flight.",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
required_start_type = squadron.location.required_aircraft_start_type
|
|
||||||
if squadron is not None and required_start_type:
|
if squadron is not None and required_start_type:
|
||||||
self.start_type.setEnabled(False)
|
self.start_type.setEnabled(False)
|
||||||
layout.addWidget(
|
layout.addWidget(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user