diff --git a/syncthingconnector/syncthingconnection_requests.cpp b/syncthingconnector/syncthingconnection_requests.cpp index 3ee0b59..5097c73 100644 --- a/syncthingconnector/syncthingconnection_requests.cpp +++ b/syncthingconnector/syncthingconnection_requests.cpp @@ -1621,13 +1621,14 @@ static void readSyncthingItems(const QJsonArray &array, std::vector(jsonItemObj.value(QLatin1String("size")) + item.size = static_cast(jsonItemObj + .value(QLatin1String("size")) #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) - .toInteger() + .toInteger() #else - .toDouble() + .toDouble() #endif - ); + ); item.index = index; item.level = level; if (type == QLatin1String("FILE_INFO_TYPE_FILE")) {