forked from qt-creator/qt-creator
Haskell: More compact settings/manager setup
Use PagedSettings, move related parts Manager interface there, too. Change-Id: I079dad8bbbea39d2424a25867b08c34ab0234ad5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
#include "haskellrunconfiguration.h"
|
||||
|
||||
#include "haskellconstants.h"
|
||||
#include "haskellmanager.h"
|
||||
#include "haskellproject.h"
|
||||
#include "haskelltr.h"
|
||||
#include "haskellsettings.h"
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/localenvironmentaspect.h>
|
||||
@@ -68,7 +68,7 @@ Runnable HaskellRunConfiguration::runnable() const
|
||||
|
||||
r.workingDirectory = projectDirectory;
|
||||
r.environment = aspect<LocalEnvironmentAspect>()->environment();
|
||||
r.command = {r.environment.searchInPath(HaskellManager::stackExecutable().toString()), args};
|
||||
r.command = {r.environment.searchInPath(settings().stackPath()), args};
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user