Ref T261, added toFullJson in parts

* needed, since the "is full" attribute needs to be added
* fixed usage in network vatlib
This commit is contained in:
Klaus Basan
2018-05-04 22:16:06 +02:00
committed by Roland Winklmeier
parent 5bf21c2937
commit ab0c34b16a
4 changed files with 32 additions and 11 deletions

View File

@@ -679,7 +679,7 @@ namespace BlackCore
void CNetworkVatlib::replyToConfigQuery(const CCallsign &callsign)
{
QJsonObject config = this->getOwnAircraftParts().toJson();
config.insert("is_full_data", true);
config.insert(CAircraftParts::attributeNameIsFullJson(), true);
QString data = QJsonDocument(QJsonObject { { "config", config } }).toJson(QJsonDocument::Compact);
data = convertToUnicodeEscaped(data);
Vat_SendAircraftConfig(m_net.data(), toFSD(callsign), toFSD(data));