Fix UI crash when unchecking default loadout.

This was throwing because it was being called with the wrong number of
arguments, preventing the UI from actually updating back to the default.
This commit is contained in:
Dan Albert 2021-04-18 13:05:22 -07:00
parent d24c65c3aa
commit 157a59e3c4
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Saves from 2.4 are not compatible with 2.5.
* **[Flight Planner]** Fixed error when planning BAI at SAMs with dead subgroups. * **[Flight Planner]** Fixed error when planning BAI at SAMs with dead subgroups.
* **[Flight Planner]** Mig-19 was not allowed for CAS roles fixed * **[Flight Planner]** Mig-19 was not allowed for CAS roles fixed
* **[Flight Planner]** Increased size of navigation planning area to avoid plannign failures with distant waypoints. * **[Flight Planner]** Increased size of navigation planning area to avoid plannign failures with distant waypoints.
* **[Flight Planner]** Fixed UI refresh when unchecking the "default loadout" box in the loadout editor.
* **[Objective names]** Fixed typos in objective name : ARMADILLLO -> ARMADILLO (by SnappyComebacks) * **[Objective names]** Fixed typos in objective name : ARMADILLLO -> ARMADILLO (by SnappyComebacks)
* **[Payloads]** F-86 Sabre was missing a custom payload * **[Payloads]** F-86 Sabre was missing a custom payload
* **[Payloads]** Added GAR-8 period restrictions (by Mustang-25) * **[Payloads]** Added GAR-8 period restrictions (by Mustang-25)

View File

@ -43,4 +43,4 @@ class QLoadoutEditor(QGroupBox):
self.flight.use_custom_loadout = self.isChecked() self.flight.use_custom_loadout = self.isChecked()
if not self.isChecked(): if not self.isChecked():
for i in self.findChildren(QPylonEditor): for i in self.findChildren(QPylonEditor):
i.default_loadout(i.pylon.number) i.default_loadout()