mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix error box in flight creation.
This commit is contained in:
parent
4cff838de0
commit
a81254cd18
@ -3,6 +3,7 @@ from typing import Optional
|
|||||||
from PySide2.QtCore import Qt, Signal
|
from PySide2.QtCore import Qt, Signal
|
||||||
from PySide2.QtWidgets import (
|
from PySide2.QtWidgets import (
|
||||||
QDialog,
|
QDialog,
|
||||||
|
QMessageBox,
|
||||||
QPushButton,
|
QPushButton,
|
||||||
QVBoxLayout,
|
QVBoxLayout,
|
||||||
)
|
)
|
||||||
@ -95,7 +96,8 @@ class QFlightCreator(QDialog):
|
|||||||
def create_flight(self) -> None:
|
def create_flight(self) -> None:
|
||||||
error = self.verify_form()
|
error = self.verify_form()
|
||||||
if error is not None:
|
if error is not None:
|
||||||
self.error_box("Could not create flight", error)
|
QMessageBox.critical(self, "Could not create flight", error,
|
||||||
|
QMessageBox.Ok)
|
||||||
return
|
return
|
||||||
|
|
||||||
task = self.task_selector.currentData()
|
task = self.task_selector.currentData()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user