Commit 72c1c41b authored by Patrick José Pereira's avatar Patrick José Pereira

TaisyncManager: Use default empty string value from toString

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 02ae7cf0
......@@ -498,7 +498,7 @@ TaisyncManager::_updateSettings(QByteArray jSonData)
//-- Link Status?
if(jSonData.contains("\"flight\":")) {
_reqMask &= ~static_cast<uint32_t>(REQ_LINK_STATUS);
bool tlinkConnected = jObj["flight"].toString("") == "online";
bool tlinkConnected = jObj["flight"].toString() == "online";
if(tlinkConnected != _linkConnected) {
_linkConnected = tlinkConnected;
emit linkConnectedChanged();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment