mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Do not allow selection of non existing carrier in mission planner
This commit is contained in:
parent
a60ab68287
commit
fe02df27a2
@ -16,7 +16,7 @@ class QChooseAirbase(QGroupBox):
|
|||||||
self.depart_from_label = QLabel("Airbase : ")
|
self.depart_from_label = QLabel("Airbase : ")
|
||||||
self.depart_from = QComboBox()
|
self.depart_from = QComboBox()
|
||||||
|
|
||||||
for i, cp in enumerate([b for b in self.game.theater.controlpoints if b.captured]):
|
for i, cp in enumerate([b for b in self.game.theater.controlpoints if b.captured and b.id in self.game.planners]):
|
||||||
self.depart_from.addItem(str(cp.name), cp)
|
self.depart_from.addItem(str(cp.name), cp)
|
||||||
self.depart_from.setCurrentIndex(0)
|
self.depart_from.setCurrentIndex(0)
|
||||||
self.depart_from.currentTextChanged.connect(self._on_airbase_selected)
|
self.depart_from.currentTextChanged.connect(self._on_airbase_selected)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user