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 GitHub
parent 46694e458d
commit f7ced1aea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"])