Limit task type combo box to valid mission types.

This commit is contained in:
Dan Albert
2020-09-25 00:25:25 -07:00
parent 0e1dfb8ccb
commit a3c06ce6e0
3 changed files with 106 additions and 16 deletions

View File

@@ -36,8 +36,9 @@ class QFlightCreator(QDialog):
layout = QVBoxLayout()
# TODO: Limit task selection to those valid for the target type.
self.task_selector = QFlightTypeComboBox()
self.task_selector = QFlightTypeComboBox(
self.game.theater, self.package.target
)
self.task_selector.setCurrentIndex(0)
layout.addLayout(QLabeledWidget("Task:", self.task_selector))