Skip to content
Commit 1dbb1857 authored by Willyanto Willyanto's avatar Willyanto Willyanto Committed by Nate Graham
Browse files

Fix weather widget crash when going to Units tab for the second time

The AbstractUnitListModel is destroyed everytime we leave Units tab
and when we are going to the Units tab for the second time, qml will
try to access AbstractUnitListModel that is already destroyed.
This causes segmentation fault.

Set AbstractUnitListModel parent to qml engine so that the
AbstractUnitListModel is destroyed when qml engine is
destroyed.

BUG: 419709


(cherry picked from commit d50d47ea)
parent 0793a695
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment