From 157a59e3c4b8c90b173ac1aff940723ca14c028d Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 18 Apr 2021 13:05:22 -0700 Subject: [PATCH] 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. --- changelog.md | 1 + qt_ui/windows/mission/flight/payload/QLoadoutEditor.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 3e06ccfd..2f5e9d14 100644 --- a/changelog.md +++ b/changelog.md @@ -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]** 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]** Fixed UI refresh when unchecking the "default loadout" box in the loadout editor. * **[Objective names]** Fixed typos in objective name : ARMADILLLO -> ARMADILLO (by SnappyComebacks) * **[Payloads]** F-86 Sabre was missing a custom payload * **[Payloads]** Added GAR-8 period restrictions (by Mustang-25) diff --git a/qt_ui/windows/mission/flight/payload/QLoadoutEditor.py b/qt_ui/windows/mission/flight/payload/QLoadoutEditor.py index 4d675e42..9d70e82a 100644 --- a/qt_ui/windows/mission/flight/payload/QLoadoutEditor.py +++ b/qt_ui/windows/mission/flight/payload/QLoadoutEditor.py @@ -43,4 +43,4 @@ class QLoadoutEditor(QGroupBox): self.flight.use_custom_loadout = self.isChecked() if not self.isChecked(): for i in self.findChildren(QPylonEditor): - i.default_loadout(i.pylon.number) + i.default_loadout()