mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #576, remove models with string by container
(improved CAircraftModel::matchesModelString)
This commit is contained in:
@@ -349,15 +349,8 @@ namespace BlackMisc
|
||||
|
||||
bool CAircraftModel::matchesModelString(const QString &modelString, Qt::CaseSensitivity sensitivity) const
|
||||
{
|
||||
if (sensitivity == Qt::CaseSensitive)
|
||||
{
|
||||
return modelString == this->m_modelString;
|
||||
}
|
||||
else
|
||||
{
|
||||
return this->m_modelString.length() == modelString.length() &&
|
||||
this->m_modelString.indexOf(modelString) == 0;
|
||||
}
|
||||
return this->m_modelString.length() == modelString.length() &&
|
||||
this->m_modelString.startsWith(modelString, sensitivity);
|
||||
}
|
||||
|
||||
CStatusMessageList CAircraftModel::validate(bool withNestedObjects) const
|
||||
|
||||
Reference in New Issue
Block a user