forked from qt-creator/qt-creator
QtcProcess: Drop return value from stopProcess()
It wasn't used at all. Change-Id: Ife0989c73c67b6106e61c40931f318ee7a5b062d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1030,15 +1030,15 @@ void QtcProcess::setRemoteProcessHooks(const DeviceProcessHooks &hooks)
|
||||
s_deviceHooks = hooks;
|
||||
}
|
||||
|
||||
bool QtcProcess::stopProcess()
|
||||
void QtcProcess::stopProcess()
|
||||
{
|
||||
if (state() == QProcess::NotRunning)
|
||||
return true;
|
||||
return;
|
||||
terminate();
|
||||
if (waitForFinished(300))
|
||||
return true;
|
||||
return;
|
||||
kill();
|
||||
return waitForFinished(300);
|
||||
waitForFinished(300);
|
||||
}
|
||||
|
||||
static bool askToKill(const QString &command)
|
||||
|
@@ -166,7 +166,7 @@ public:
|
||||
void setStdErrCallback(const std::function<void(const QString &)> &callback);
|
||||
void setStdErrLineCallback(const std::function<void(const QString &)> &callback);
|
||||
|
||||
bool stopProcess();
|
||||
void stopProcess();
|
||||
bool readDataFromProcess(int timeoutS, QByteArray *stdOut, QByteArray *stdErr,
|
||||
bool showTimeOutMessageBox);
|
||||
|
||||
|
Reference in New Issue
Block a user