Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
97680f66
Commit
97680f66
authored
Mar 05, 2021
by
Volker Krause
Browse files
Fix JSON serialization of vehicle layout requests
This fixes empty entries when logging all communication.
parent
d84e833f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/vehiclelayoutrequest.cpp
View file @
97680f66
...
@@ -50,7 +50,9 @@ QString VehicleLayoutRequest::cacheKey() const
...
@@ -50,7 +50,9 @@ QString VehicleLayoutRequest::cacheKey() const
QJsonObject
VehicleLayoutRequest
::
toJson
(
const
VehicleLayoutRequest
&
req
)
QJsonObject
VehicleLayoutRequest
::
toJson
(
const
VehicleLayoutRequest
&
req
)
{
{
return
Json
::
toJson
(
req
);
auto
obj
=
Json
::
toJson
(
req
);
obj
.
insert
(
QLatin1String
(
"stopover"
),
Stopover
::
toJson
(
req
.
stopover
()));
return
obj
;
}
}
QStringList
VehicleLayoutRequest
::
backendIds
()
const
QStringList
VehicleLayoutRequest
::
backendIds
()
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment