mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Ref T323, UI message for overriding flight plan
This commit is contained in:
@@ -210,7 +210,7 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFlightPlanComponent::fillWithFlightPlanData(const BlackMisc::Aviation::CFlightPlan &flightPlan)
|
void CFlightPlanComponent::fillWithFlightPlanData(const CFlightPlan &flightPlan)
|
||||||
{
|
{
|
||||||
ui->le_AlternateAirport->setText(flightPlan.getAlternateAirportIcao().asString());
|
ui->le_AlternateAirport->setText(flightPlan.getAlternateAirportIcao().asString());
|
||||||
ui->le_DestinationAirport->setText(flightPlan.getDestinationAirportIcao().asString());
|
ui->le_DestinationAirport->setText(flightPlan.getDestinationAirportIcao().asString());
|
||||||
@@ -571,7 +571,7 @@ namespace BlackGui
|
|||||||
const CFlightPlan loadedPlan = sGui->getIContextNetwork()->loadFlightPlanFromNetwork(ownAircraft.getCallsign());
|
const CFlightPlan loadedPlan = sGui->getIContextNetwork()->loadFlightPlanFromNetwork(ownAircraft.getCallsign());
|
||||||
if (loadedPlan.wasSentOrLoaded())
|
if (loadedPlan.wasSentOrLoaded())
|
||||||
{
|
{
|
||||||
const int r = QMessageBox::warning(this, "Override current data?", "Loaded FP", QMessageBox::Yes | QMessageBox::No);
|
const int r = QMessageBox::warning(this, "Loaded FP", "Override current flight plan data?", QMessageBox::Yes | QMessageBox::No);
|
||||||
if (r != QMessageBox::Yes) { return; }
|
if (r != QMessageBox::Yes) { return; }
|
||||||
this->fillWithFlightPlanData(loadedPlan);
|
this->fillWithFlightPlanData(loadedPlan);
|
||||||
CLogMessage(this).info("Updated with loaded flight plan");
|
CLogMessage(this).info("Updated with loaded flight plan");
|
||||||
|
|||||||
Reference in New Issue
Block a user