diff --git a/src/FileManager.cpp b/src/FileManager.cpp index c3c664055..7efd28cd0 100644 --- a/src/FileManager.cpp +++ b/src/FileManager.cpp @@ -54,7 +54,8 @@ void FileManager::onRecurseJobFinished(const Set &paths) std::lock_guard lock(mMutex); // ### is this needed now? std::shared_ptr project = mProject.lock(); - assert(project); + if (!project) + return; Files &map = project->files(); map.clear(); mWatcher.clear();