Skip to content
Snippets Groups Projects
Commit 96e2fef6 authored by dt's avatar dt
Browse files

Fix CppModelManager::parse broken in recent commit

Reviewed-by: Friedemann Kleint
parent 8bd54e36
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment