CppTools: Fix crash on shutdown
CppTools: Fix crash on shutdown

We need to wait for the document parser, otherwise the CppModelManager
object might get destroyed first and will be referenced later in
CppEditorSupport::parse().

Change-Id: I1b591640c1da3e63e49ac0b4b8af41aae31b3d43
Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@digia.com>
Reviewed-by: Erik Verbruggen <5edfe905d082749f2ac3f4e6b42937f39f083771@digia.com>

omniacreator/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,darksylinc/qt-creator,danimo/qt-creator,farseerri/git_code,darksylinc/qt-creator,darksylinc/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,Distrotech/qtcreator,omniacreator/qtcreator,farseerri/git_code,maui-packages/qt-creator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,Distrotech/qtcreator,darksylinc/qt-creator,farseerri/git_code,colede/qtcreator,danimo/qt-creator,danimo/qt-creator,Distrotech/qtcreator,xianian/qt-creator,danimo/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,martyone/sailfish-qtcreator,colede/qtcreator,omniacreator/qtcreator,xianian/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,farseerri/git_code,colede/qtcreator,colede/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,maui-packages/qt-creator,xianian/qt-creator,kuba1/qtcreator,danimo/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,maui-packages/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,farseerri/git_code,xianian/qt-creator,darksylinc/qt-creator,maui-packages/qt-creator,omniacreator/qtcreator,AltarBeastiful/qt-creator,maui-packages/qt-creator,farseerri/git_code,farseerri/git_code,darksylinc/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,maui-packages/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,omniacreator/qtcreator,darksylinc/qt-creator,kuba1/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,kuba1/qtcreator,farseerri/git_code,colede/qtcreator,kuba1/qtcreator,danimo/qt-creator,xianian/qt-creator,xianian/qt-creator