seafile-client/seafile-client-6.0.7-qt5-5.7.1.patch

21 lines
991 B
Diff

--- seafile-client-6.0.7/src/utils/utils.cpp.orig 2017-07-12 17:02:33.804293399 +0200
+++ seafile-client-6.0.7/src/utils/utils.cpp 2017-07-12 17:03:05.801440950 +0200
@@ -468,7 +468,7 @@
} else if (json_is_string(value)) {
v = QString::fromUtf8(json_string_value(value));
} else if (json_is_integer(value)) {
- v = json_integer_value(value);
+ v = QVariant::fromValue(json_integer_value(value));
} else if (json_is_real(value)) {
v = json_real_value(value);
} else if (json_is_boolean(value)) {
@@ -510,7 +510,7 @@
} else if (json_is_string(value)) {
v = QString::fromUtf8(json_string_value(value));
} else if (json_is_integer(value)) {
- v = json_integer_value(value);
+ v = QVariant::fromValue(json_integer_value(value));
} else if (json_is_real(value)) {
v = json_real_value(value);
} else if (json_is_boolean(value)) {