aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskellproject.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-05-13 16:46:29 +0200
committerEike Ziller <eike.ziller@qt.io>2019-05-13 16:46:29 +0200
commitdd695dcd2cfbc441cb98e01b616af7e1e92aa979 (patch)
treefc842c567a958e3532c3b19c217d505a1702c80e /plugins/haskell/haskellproject.cpp
parent1f0b6252f52d40305c9a1e0cdf72429448fdab2d (diff)
parentbef11b6fb4457d1913bf82d06a336fde18b73ac7 (diff)
Merge remote-tracking branch 'origin/4.9'
Diffstat (limited to 'plugins/haskell/haskellproject.cpp')
-rw-r--r--plugins/haskell/haskellproject.cpp18
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());