Changeset - 5c9db4e54bbd
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 6 years ago 2019-05-03 16:08:12
hy@ozderya.net
fix crash during update check #16
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/updatechecker.cpp
Show inline comments
 
@@ -115,13 +115,13 @@ bool UpdateChecker::parseData(const QJso
 
       }, ... ]
 
    }
 
    */
 

	
 
    if (!data.isObject()) return false;
 

	
 
    auto values = data.object()["values"];
 
    auto values = data.object().value("values");
 
    if (values == QJsonValue::Undefined || !values.isArray()) return false;
 

	
 
    for (auto value : values.toArray())
 
    {
 
        if (!value.isObject()) return false;
 

	
0 comments (0 inline, 0 general)