summaryrefslogtreecommitdiff
path: root/src/plugins/python/pipsupport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pipsupport.cpp')
-rw-r--r--src/plugins/python/pipsupport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/python/pipsupport.cpp b/src/plugins/python/pipsupport.cpp
index c354ebb4e1..44ee82727c 100644
--- a/src/plugins/python/pipsupport.cpp
+++ b/src/plugins/python/pipsupport.cpp
@@ -95,7 +95,8 @@ void PipInstallTask::run()
void PipInstallTask::cancel()
{
- m_process.stopProcess();
+ m_process.stop();
+ m_process.waitForFinished();
Core::MessageManager::writeFlashing(
tr("The %1 installation was canceled by %2.")
.arg(m_package.displayName, m_killTimer.isActive() ? tr("user") : tr("time out")));