[FSD] Ref T753, avoid ":" in FPs

Also avoid unnecessary roundtrips of UI updates
This commit is contained in:
Klaus Basan
2019-10-21 16:14:29 +02:00
parent 164e9a3306
commit 67840b53c7
3 changed files with 17 additions and 6 deletions

View File

@@ -520,8 +520,10 @@ namespace BlackCore
// Removed with T353 although it is standard
// const QString route = QString(flightPlan.getRoute()).replace(" ", ".");
const QString route = flightPlan.getRoute();
const QString remarks = flightPlan.getRemarks();
QString route = flightPlan.getRoute();
QString remarks = flightPlan.getRemarks();
route.remove(':');
remarks.remove(':');
//! \fixme that would be the official string, can this be used?
const QString alt = flightPlan.getCruiseAltitude().asFpVatsimAltitudeString();