diff options
author | Eike Ziller <[email protected]> | 2019-05-13 16:04:10 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2019-05-13 14:20:10 +0000 |
commit | bef11b6fb4457d1913bf82d06a336fde18b73ac7 (patch) | |
tree | fc842c567a958e3532c3b19c217d505a1702c80e /plugins/haskell/haskellproject.cpp | |
parent | 1f0b6252f52d40305c9a1e0cdf72429448fdab2d (diff) |
Adapt to 4.94.9
Change-Id: I649fd586c31149153a501d011bcd95e3452404e8
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'plugins/haskell/haskellproject.cpp')
-rw-r--r-- | plugins/haskell/haskellproject.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/haskell/haskellproject.cpp b/plugins/haskell/haskellproject.cpp index af6b806..bdc3860 100644 --- a/plugins/haskell/haskellproject.cpp +++ b/plugins/haskell/haskellproject.cpp @@ -87,17 +87,13 @@ void HaskellProject::updateFiles() { emitParsingStarted(); FileName projectDir = projectDirectory(); - const QList<Core::IVersionControl *> versionControls = Core::VcsManager::versionControls(); - QFuture<QList<FileNode *>> future = Utils::runAsync([this, projectDir, versionControls] { - return FileNode::scanForFilesWithVersionControls( - projectDir, - [this](const FileName &fn) -> FileNode * { - if (fn != FileName::fromString(projectFilePath().toString() + ".user")) - return new FileNode(fn, FileType::Source, false); - else - return nullptr; - }, - versionControls); + QFuture<QList<FileNode *>> future = Utils::runAsync([this, projectDir] { + return FileNode::scanForFiles(projectDir, [this](const FileName &fn) -> FileNode * { + if (fn != FileName::fromString(projectFilePath().toString() + ".user")) + return new FileNode(fn, FileType::Source, false); + else + return nullptr; + }); }); Utils::onResultReady(future, this, [this](const QList<FileNode *> &nodes) { auto root = new HaskellProjectNode(projectDirectory(), id()); |