Make the flight details menu modal.

Prevents players from accidentally deleting flights they're currently
viewing, which would cause an error.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2911.

(cherry picked from commit 64e2213f282f02d972dffd89a1c8b85fbb5bbfc7)
This commit is contained in:
Dan Albert 2023-05-25 21:00:42 -07:00
parent a31296cbc0
commit 7fea15ee07

View File

@ -29,6 +29,7 @@ class QEditFlightDialog(QDialog):
self.setWindowTitle("Edit flight")
self.setWindowIcon(EVENT_ICONS["strike"])
self.setModal(True)
layout = QVBoxLayout()