mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Return pilots when canceling flight creation.
This commit is contained in:
parent
153d8e106e
commit
db36cf248e
@ -147,6 +147,11 @@ class QFlightCreator(QDialog):
|
|||||||
|
|
||||||
self.on_departure_changed(self.departure.currentIndex())
|
self.on_departure_changed(self.departure.currentIndex())
|
||||||
|
|
||||||
|
def reject(self) -> None:
|
||||||
|
super().reject()
|
||||||
|
# Clear the roster to return pilots to the pool.
|
||||||
|
self.roster_editor.replace(None)
|
||||||
|
|
||||||
def set_custom_name_text(self, text: str):
|
def set_custom_name_text(self, text: str):
|
||||||
self.custom_name_text = text
|
self.custom_name_text = text
|
||||||
|
|
||||||
@ -216,7 +221,7 @@ class QFlightCreator(QDialog):
|
|||||||
|
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
self.created.emit(flight)
|
self.created.emit(flight)
|
||||||
self.close()
|
self.accept()
|
||||||
|
|
||||||
def on_aircraft_changed(self, index: int) -> None:
|
def on_aircraft_changed(self, index: int) -> None:
|
||||||
new_aircraft = self.aircraft_selector.itemData(index)
|
new_aircraft = self.aircraft_selector.itemData(index)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user