diff options
-rw-r--r-- | Libraries/LibGUI/JsonArrayModel.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibGUI/JsonArrayModel.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/JsonArrayModel.cpp b/Libraries/LibGUI/JsonArrayModel.cpp index 0837dbcb55..31e6430200 100644 --- a/Libraries/LibGUI/JsonArrayModel.cpp +++ b/Libraries/LibGUI/JsonArrayModel.cpp @@ -107,7 +107,7 @@ Variant JsonArrayModel::data(const ModelIndex& index, ModelRole role) const if (field_spec.massage_for_display) return field_spec.massage_for_display(object); if (data.is_number()) - return data.to_i32(); + return data; return object.get(json_field_name).to_string(); } diff --git a/Libraries/LibGUI/JsonArrayModel.h b/Libraries/LibGUI/JsonArrayModel.h index 9b19fb81e0..1c44917dcf 100644 --- a/Libraries/LibGUI/JsonArrayModel.h +++ b/Libraries/LibGUI/JsonArrayModel.h @@ -64,7 +64,7 @@ public: return adopt(*new JsonArrayModel(json_path, move(fields))); } - virtual ~JsonArrayModel() override {} + virtual ~JsonArrayModel() override { } virtual int row_count(const ModelIndex& = ModelIndex()) const override { return m_array.size(); } virtual int column_count(const ModelIndex& = ModelIndex()) const override { return m_fields.size(); } |