Commit 96e2fef6 authored by dt's avatar dt
Browse files

Fix CppModelManager::parse broken in recent commit

Reviewed-by: Friedemann Kleint
parent 8bd54e36
......@@ -1269,6 +1269,9 @@ void CppModelManager::parse(QFutureInterface<void> &future,
if (files.isEmpty())
return;
foreach (const QString &file, files)
preproc->snapshot.remove(file);
QStringList sources;
QStringList headers;
const Core::MimeDatabase *mimeDb = Core::ICore::instance()->mimeDatabase();
......@@ -1278,8 +1281,6 @@ void CppModelManager::parse(QFutureInterface<void> &future,
const int sourceCount = sources.size();
files = sources;
files += headers;
foreach (const QString &file, files)
preproc->snapshot.remove(file);
preproc->setTodo(files);
......
Markdown is supported
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