mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
Merge pull request #33 from Szybet/master
bugfix - i cant believe this was my code
This commit is contained in:
commit
aa8214a297
1 changed files with 3 additions and 3 deletions
|
@ -236,11 +236,8 @@ QString userapps::parseJsonShow(QJsonObject json)
|
||||||
QJsonArray array = value.toArray();
|
QJsonArray array = value.toArray();
|
||||||
if(key == "RequiredFeatures") {
|
if(key == "RequiredFeatures") {
|
||||||
bool foundRequiredFeature = false;
|
bool foundRequiredFeature = false;
|
||||||
appendString.append("None");
|
|
||||||
|
|
||||||
for(QJsonValueRef ref: array) {
|
for(QJsonValueRef ref: array) {
|
||||||
foundRequiredFeature = true;
|
foundRequiredFeature = true;
|
||||||
appendString.remove(appendString.size() - 4, 4);
|
|
||||||
int id = ref.toInt();
|
int id = ref.toInt();
|
||||||
if(id == 0) {
|
if(id == 0) {
|
||||||
appendString.append("Wi-Fi connection");
|
appendString.append("Wi-Fi connection");
|
||||||
|
@ -257,6 +254,9 @@ QString userapps::parseJsonShow(QJsonObject json)
|
||||||
if(foundRequiredFeature == true) {
|
if(foundRequiredFeature == true) {
|
||||||
appendString.remove(appendString.size() - 2, 2);
|
appendString.remove(appendString.size() - 2, 2);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
appendString.append("None");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if(key == "SupportedDevices") {
|
else if(key == "SupportedDevices") {
|
||||||
for(QJsonValueRef ref: array) {
|
for(QJsonValueRef ref: array) {
|
||||||
|
|
Loading…
Reference in a new issue