CMakePM: Do not emit error signal in destructor while project is parsed

Do not emit error occurred in the fileapireader destructor
if it's parsing. This will cause the fallback file system view
tree to be generated just before the parsing will be stopped.

This can lead to crashes.

Task-number: QTCREATORBUG-25837
Change-Id: Ic7a2dfc394ed8e259da3366727a3c5fa65d98776
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Cristian Adam
2021-06-09 19:57:11 +02:00
parent b423523852
commit 7a074608b6

View File

@@ -64,8 +64,6 @@ FileApiReader::FileApiReader()
FileApiReader::~FileApiReader()
{
if (isParsing())
emit errorOccurred(tr("Parsing has been canceled."));
stop();
resetData();
}