forked from qt-creator/qt-creator
Revert "Clang: Replace macro usage with HostOsInfo"
This reverts commit cbdf673696.
It introduce a dependency to utils for a couple of lines,
so it is not worth.
Change-Id: I2f53ff3f63322719de6faed7f55c66282d1044e8
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -30,8 +30,6 @@
|
||||
#include "cmbregistertranslationunitsforeditormessage.h"
|
||||
#include "cmbunregistertranslationunitsforeditormessage.h"
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QMetaMethod>
|
||||
#include <QProcess>
|
||||
@@ -183,10 +181,13 @@ void ConnectionClient::endProcess(QProcess *process)
|
||||
|
||||
void ConnectionClient::terminateProcess(QProcess *process)
|
||||
{
|
||||
if (!Utils::HostOsInfo::isWindowsHost() && isProcessIsRunning()) {
|
||||
Q_UNUSED(process)
|
||||
#ifndef Q_OS_WIN32
|
||||
if (isProcessIsRunning()) {
|
||||
process->terminate();
|
||||
process->waitForFinished();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void ConnectionClient::killProcess(QProcess *process)
|
||||
|
||||
Reference in New Issue
Block a user