Itinerary expects image as a QUrl, so when a websites uses an Array with multiple images (not sure how compliant that is but very common), at least take the first one so we have something to show.
Details
Details
- Reviewers
vkrause - Commits
- R1003:9513c6b5fb04: When image is an Array, take the first one
Suddenly got images on many more restaurant websites :)
QJsonArray::first() doesn't assert like QList::first() when empty since it returns a QJsonValue and no reference.
Diff Detail
Diff Detail
- Repository
- R1003 KItinerary: Travel Reservation handling library
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.