Fix QFlightWaypointTab preventing save game

closes #2180
This commit is contained in:
RndName 2022-04-21 13:25:01 +02:00
parent c437fa329c
commit 3008d9a512
No known key found for this signature in database
GPG Key ID: 5EF516FD9537F7C0

View File

@ -142,8 +142,9 @@ class QFlightWaypointTab(QFrame):
def degrade_to_custom_flight_plan(self) -> None:
if not isinstance(self.flight.flight_plan, CustomFlightPlan):
self.flight.flight_plan: FlightPlan[Any] = CustomFlightPlan(
self, CustomLayout(custom_waypoints=self.flight.flight_plan.waypoints)
self.flight.flight_plan = CustomFlightPlan(
self.flight,
CustomLayout(custom_waypoints=self.flight.flight_plan.waypoints),
)
def confirm_recreate(self, task: FlightType) -> None: