mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T129, force callsign type "Aircraft" for model
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4fc06cf3b0
commit
9b51ec251c
@@ -142,6 +142,12 @@ namespace BlackMisc
|
||||
return nw;
|
||||
}
|
||||
|
||||
void CAircraftModel::setCallsign(const CCallsign &callsign)
|
||||
{
|
||||
this->m_callsign = callsign;
|
||||
this->m_callsign.setTypeHint(CCallsign::Aircraft);
|
||||
}
|
||||
|
||||
QString CAircraftModel::getModelStringAndDbKey() const
|
||||
{
|
||||
if (this->hasValidDbKey())
|
||||
@@ -247,6 +253,7 @@ namespace BlackMisc
|
||||
break;
|
||||
case IndexCallsign:
|
||||
this->m_callsign.setPropertyByIndex(index.copyFrontRemoved(), variant);
|
||||
this->m_callsign.setTypeHint(CCallsign::Aircraft);
|
||||
break;
|
||||
case IndexFileName:
|
||||
this->m_fileName = variant.toQString();
|
||||
|
||||
Reference in New Issue
Block a user