Make the flight dialog modal to prevent inventory loss.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1971.
This commit is contained in:
Benjamin Fischer
2022-03-17 01:29:27 +01:00
committed by RndName
parent dba8c26887
commit d69841f261

View File

@@ -40,6 +40,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"])