Fix crash when accessing the content model.
authorChristian Kandeler <christian.kandeler@digia.com>
Fri, 19 Sep 2014 11:48:07 +0000 (13:48 +0200)
committerChristian Kandeler <christian.kandeler@digia.com>
Fri, 19 Sep 2014 14:06:51 +0000 (16:06 +0200)
commit378d04837cb0033031f26269b1194855870ee1d6
tree250d3b146b3d50f2f82675d686a94b89d5ae063e
parentcd1ded8465f2e5c3da7edf1a38b3b5b3d6a6b1cd
Fix crash when accessing the content model.

1) Make sure invalidateContents() is called whenever the help engine's
   DB readers are destroyed.
2) In QHelpContentProvider::stopCollecting(), remove all root items, as
   they are invalid now: Their child items reference DB readers that
   are going to be destroyed.

Task-number: QTBUG-18829
Change-Id: Id9cc4ea99c43c36ad5c5d1f04157a68bac79d44a
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
src/assistant/help/qhelpcontentwidget.cpp
src/assistant/help/qhelpenginecore.cpp
src/assistant/help/qhelpenginecore.h
src/assistant/help/qhelpindexwidget.cpp