From 753b301e88932aa95c3752d6c9c0de7b488b9849 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 7 Nov 2021 19:25:38 -0800 Subject: [PATCH] Fix crash when creating packages. I'm not sure if this is a symptom of the bug or if this is actually a separate bug, but pushing this for now to make the bug less severe. https://github.com/dcs-liberation/dcs_liberation/issues/1720 --- qt_ui/widgets/map/mapmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt_ui/widgets/map/mapmodel.py b/qt_ui/widgets/map/mapmodel.py index acdd7a92..9ed74e9d 100644 --- a/qt_ui/widgets/map/mapmodel.py +++ b/qt_ui/widgets/map/mapmodel.py @@ -1125,7 +1125,7 @@ class MapModel(QObject): return None package_index, flight_index = self._selected_flight_index blue = True - return self._flights[blue, package_index, flight_index] + return self._flights.get((blue, package_index, flight_index)) def deselect_current_flight(self) -> None: flight = self._selected_flight