From 37900f19bc07b11bd5fe410b877019901e1fdfc4 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Mon, 18 Dec 2023 22:55:53 +0100 Subject: [PATCH] fix: Copy wrong QString value for Wake Turbulence Category --- src/blackmisc/aviation/aircrafticaocode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackmisc/aviation/aircrafticaocode.cpp b/src/blackmisc/aviation/aircrafticaocode.cpp index 1bcba68a7..da671eac5 100644 --- a/src/blackmisc/aviation/aircrafticaocode.cpp +++ b/src/blackmisc/aviation/aircrafticaocode.cpp @@ -78,7 +78,7 @@ namespace BlackMisc::Aviation void CAircraftIcaoCode::updateMissingParts(const CAircraftIcaoCode &otherIcaoCode) { if (!this->hasValidDesignator() && otherIcaoCode.hasValidDesignator()) { this->setDesignator(otherIcaoCode.getDesignator()); } - if (!this->hasValidWtc() && otherIcaoCode.hasValidWtc()) { this->setWtc(otherIcaoCode.getDesignator()); } + if (!this->hasValidWtc() && otherIcaoCode.hasValidWtc()) { this->setWtc(otherIcaoCode.getWtc()); } if (!this->hasValidCombinedType() && otherIcaoCode.hasValidCombinedType()) { this->setCombinedType(otherIcaoCode.getCombinedType()); } if (m_manufacturer.isEmpty()) { this->setManufacturer(otherIcaoCode.getManufacturer()); } if (m_modelDescription.isEmpty()) { this->setModelDescription(otherIcaoCode.getModelDescription()); }