KitModel: Fix crash on removing kits introduced in 7fd21d22a
KitModel: Fix crash on removing kits introduced in 7fd21d22a

Removing a kit removes the item from the TreeModel and puts it into
KitModel::m_toRemoveList. A later update to that kit would trigger
the lambda connected to the dirty signal, thus calling node->update(),
which eventually ends up calling node->parent()->m_children, and
node->parent() is a null pointer there.

Change-Id: I9006f1eea036ae99b48a47baa2bc2a33bdcb84b1
Reviewed-by: hjk <4622a3e4640ee19ab4ebad197849e45b7170d50c@theqtcompany.com>

xianian/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,xianian/qt-creator,xianian/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,Distrotech/qtcreator,danimo/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,danimo/qt-creator,xianian/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,kuba1/qtcreator,kuba1/qtcreator,kuba1/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,kuba1/qtcreator,Distrotech/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,Distrotech/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,xianian/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator