mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-04 01:15:52 +00:00
add test for telemetryhandler class
This commit is contained in:
@ -111,7 +111,7 @@ bool AWTelemetryHandler::put(const QString group, const QString value) const
|
||||
settings.endGroup();
|
||||
settings.sync();
|
||||
// return status
|
||||
return (settings.status() != QSettings::NoError);
|
||||
return (settings.status() == QSettings::NoError);
|
||||
}
|
||||
|
||||
|
||||
@ -168,8 +168,10 @@ void AWTelemetryHandler::telemetryReplyRecieved(QNetworkReply *reply)
|
||||
|
||||
// convert to map
|
||||
QVariantMap response = jsonDoc.toVariant().toMap();
|
||||
qCInfo(LOG_AW) << "Server reply on telemetry"
|
||||
<< response[QString("message")].toString();
|
||||
QString message = response[QString("message")].toString();
|
||||
qCInfo(LOG_AW) << "Server reply on telemetry" << message;
|
||||
|
||||
return emit(replyReceived(message));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user