mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #720, treat auto gen. descriptions as "empty"
This commit is contained in:
committed by
Mathew Sutcliffe
parent
da343d81c1
commit
4582387684
@@ -438,7 +438,7 @@ namespace BlackMisc
|
||||
this->updateByLocalFileNames(otherModel);
|
||||
if (this->m_callsign.isEmpty()) { this->setCallsign(otherModel.getCallsign()); }
|
||||
if (this->m_modelString.isEmpty()) { this->setModelString(otherModel.getModelString()); }
|
||||
if (this->m_description.isEmpty()) { this->setDescription(otherModel.getDescription()); }
|
||||
if (this->m_description.isEmpty() || this->m_description.startsWith(CAircraftModel::autoGenerated(), Qt::CaseInsensitive)) { this->setDescription(otherModel.getDescription()); }
|
||||
if (this->m_modelType == TypeUnknown) { this->m_modelType = otherModel.getModelType(); }
|
||||
if (this->m_modelMode == Undefined) { this->m_modelType = otherModel.getModelType(); }
|
||||
if (this->m_simulator.isUnspecified())
|
||||
@@ -631,5 +631,11 @@ namespace BlackMisc
|
||||
}
|
||||
return liveryModelStrings;
|
||||
}
|
||||
|
||||
const QString &CAircraftModel::autoGenerated()
|
||||
{
|
||||
static const QString ag("swift auto generated");
|
||||
return ag;
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user