From 53ceaca47c0d29c4ee6f01451a4a71331c4868ea Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 10 Nov 2016 00:46:15 +0000 Subject: [PATCH] refs #800 Fixed unreachable code. --- src/blackcore/context/contextownaircraftimpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blackcore/context/contextownaircraftimpl.cpp b/src/blackcore/context/contextownaircraftimpl.cpp index 7d4103b65..a30e00578 100644 --- a/src/blackcore/context/contextownaircraftimpl.cpp +++ b/src/blackcore/context/contextownaircraftimpl.cpp @@ -286,9 +286,10 @@ namespace BlackCore { { QWriteLocker l(&m_lockAircraft); - return this->m_ownAircraft.setIcaoCodes(aircraftIcaoCode, airlineIcaoCode); + if (!this->m_ownAircraft.setIcaoCodes(aircraftIcaoCode, airlineIcaoCode)) { return false; } } emit this->changedAircraftIcaoCodes(aircraftIcaoCode, airlineIcaoCode); + return true; } bool CContextOwnAircraft::updateSelcal(const CSelcal &selcal, const CIdentifier &originator)