From f7ced1aea65eccad7ce09d2af8e02a11857dfd19 Mon Sep 17 00:00:00 2001 From: Benjamin Fischer Date: Thu, 17 Mar 2022 01:29:27 +0100 Subject: [PATCH] Make the flight dialog modal to prevent inventory loss. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1971. --- qt_ui/windows/mission/flight/QFlightCreator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt_ui/windows/mission/flight/QFlightCreator.py b/qt_ui/windows/mission/flight/QFlightCreator.py index 40091fb5..385cb7da 100644 --- a/qt_ui/windows/mission/flight/QFlightCreator.py +++ b/qt_ui/windows/mission/flight/QFlightCreator.py @@ -42,6 +42,9 @@ class QFlightCreator(QDialog): self.custom_name_text = None self.country = self.game.blue.country_name + # Make dialog modal to prevent background windows to close unexpectedly. + self.setModal(True) + self.setWindowTitle("Create flight") self.setWindowIcon(EVENT_ICONS["strike"])