From a404792bd2fcc45def18a10892fb6832bf3de50f Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 31 Aug 2021 22:10:23 -0700 Subject: [PATCH] Reset the max flight size when changing squadrons. --- qt_ui/windows/mission/flight/QFlightCreator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt_ui/windows/mission/flight/QFlightCreator.py b/qt_ui/windows/mission/flight/QFlightCreator.py index cc465422..796ca5cd 100644 --- a/qt_ui/windows/mission/flight/QFlightCreator.py +++ b/qt_ui/windows/mission/flight/QFlightCreator.py @@ -223,6 +223,7 @@ class QFlightCreator(QDialog): def on_squadron_changed(self, index: int) -> None: squadron: Optional[Squadron] = self.squadron_selector.itemData(index) + self.update_max_size(self.squadron_selector.aircraft_available) # Clear the roster first so we return the pilots to the pool. This way if we end # up repopulating from the same squadron we'll get the same pilots back. self.roster_editor.replace(None)