summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index 74294263a9..d13a233750 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -113,13 +113,13 @@ void openPythonRepl(const FilePath &file, ReplType type)
process->setWorkingDirectory(workingDir(file));
const QString commandLine = process->command().toUserOutput();
QObject::connect(process,
- &ConsoleProcess::processError,
+ &ConsoleProcess::errorOccurred,
process,
- [process, commandLine](const QString &errorString) {
+ [process, commandLine] {
Core::MessageManager::writeDisrupting(
QCoreApplication::translate("Python",
"Failed to run Python (%1): \"%2\".")
- .arg(commandLine, errorString));
+ .arg(commandLine, process->errorString()));
process->deleteLater();
});
QObject::connect(process, &ConsoleProcess::stubStopped, process, &QObject::deleteLater);