From 72c1c41bfddd29e71646c2c90b2b9f5873227009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 27 Jun 2019 16:05:55 -0300 Subject: [PATCH] TaisyncManager: Use default empty string value from toString MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/Taisync/TaisyncManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Taisync/TaisyncManager.cc b/src/Taisync/TaisyncManager.cc index 86033f95f..c76996674 100644 --- a/src/Taisync/TaisyncManager.cc +++ b/src/Taisync/TaisyncManager.cc @@ -498,7 +498,7 @@ TaisyncManager::_updateSettings(QByteArray jSonData) //-- Link Status? if(jSonData.contains("\"flight\":")) { _reqMask &= ~static_cast(REQ_LINK_STATUS); - bool tlinkConnected = jObj["flight"].toString("") == "online"; + bool tlinkConnected = jObj["flight"].toString() == "online"; if(tlinkConnected != _linkConnected) { _linkConnected = tlinkConnected; emit linkConnectedChanged(); -- 2.22.0