aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-02-16 10:31:56 +0100
committerChristian Stenger <christian.stenger@qt.io>2022-02-16 09:35:58 +0000
commit06f18f58e4320e3831ea8f98c208951ab86c5dcd (patch)
tree548f9e6ce94ebacbf9da63a47a580bba83430d71 /plugins
parentbb375f7129bc43105efb638b32fe6cfb5b7bcac7 (diff)
Adapt to upstream changes
Change-Id: Ie6d5638a39b2c4a0be1a59d39511c5eca03b4f7b Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/haskell/haskellmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/haskell/haskellmanager.cpp b/plugins/haskell/haskellmanager.cpp
index 7168f42..c1bdbea 100644
--- a/plugins/haskell/haskellmanager.cpp
+++ b/plugins/haskell/haskellmanager.cpp
@@ -106,7 +106,8 @@ void HaskellManager::openGhci(const FilePath &haskellFile)
});
const auto args = QStringList{"ghci"}
+ (isHaskell ? QStringList{haskellFile.fileName()} : QStringList());
- auto p = new QtcProcess(QtcProcess::TerminalOn, m_instance);
+ auto p = new QtcProcess(m_instance);
+ p->setTerminalMode(QtcProcess::TerminalOn);
p->setCommand({stackExecutable(), args});
p->setWorkingDirectory(haskellFile.absolutePath());
connect(p, &QtcProcess::errorOccurred, p, [p] {