aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-05-04 07:33:24 +0200
committerhjk <hjk@qt.io>2021-05-05 12:28:45 +0000
commita570ab0e3c7f4399bb32bd762b4bc787faddae1b (patch)
tree449076141620485dae6874b1d5a023eeb4b6e873 /src/plugins/perforce
parent8b4cd1e0aa832cc47739bbeca56898d253feb54c (diff)
Perforce: Use QtcProcess instead of SynchronousProcess helpers
Change-Id: I1d6ef963a72a9ef3175c696bff9038faf5889311 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforceplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp
index b133487ec94..aa797b865dc 100644
--- a/src/plugins/perforce/perforceplugin.cpp
+++ b/src/plugins/perforce/perforceplugin.cpp
@@ -1350,8 +1350,8 @@ PerforceResponse PerforcePluginPrivate::fullySynchronousProcess(const QString &w
QByteArray stdOut;
QByteArray stdErr;
const int timeOutS = (flags & LongTimeOut) ? m_settings.longTimeOutS() : m_settings.timeOutS.value();
- if (!SynchronousProcess::readDataFromProcess(process, timeOutS, &stdOut, &stdErr, true)) {
- SynchronousProcess::stopProcess(process);
+ if (!process.readDataFromProcess(timeOutS, &stdOut, &stdErr, true)) {
+ process.stopProcess();
response.error = true;
response.message = msgTimeout(timeOutS);
return response;