Skip to content

Commit

Permalink
fix (workaround) crash when some page is shown during navigation
Browse files Browse the repository at this point in the history
itinerary is for example
  • Loading branch information
Karry committed May 20, 2024
1 parent 5b511f6 commit 3f1715e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qml/pages/Cover.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ CoverBackground {
enabled: AppSettings.showCollections
}

followVehicle: Global.navigationModel.destinationSet
followVehicle: cover.status == PageStatus.Active && Global.navigationModel.destinationSet
renderingType: Global.navigationModel.destinationSet ? "plane" : "tiled"

Connections {
Expand Down
4 changes: 3 additions & 1 deletion qml/pages/MapPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,9 @@ Page {
showCurrentPosition: true
interactiveIcons: true
vehiclePosition: Global.navigationModel.vehiclePosition
followVehicle: Global.navigationModel.destinationSet
// for some reason, Qt (5.6) renderering crash when we are contantly refreshing view
// of the map that is not on active page (itinerary is shown for example)
followVehicle: mapPage.status == PageStatus.Active && Global.navigationModel.destinationSet
renderingType: Global.navigationModel.destinationSet ? "plane" : "tiled"
vehicleAutoRotateMap: AppSettings.vehicleAutoRotateMap

Expand Down
1 change: 1 addition & 0 deletions rpm/harbour-osmscout.changes.in
Original file line number Diff line number Diff line change
Expand Up @@ -625,3 +625,4 @@

* 2024-xx-xx Lukáš Karas <[email protected]> 2.35
- take initial vehicle bearing into account during (re)routing
- fix (workaround) crash when some page is shown during navigation (itinerary is for example)

0 comments on commit 3f1715e

Please sign in to comment.