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 "cmbregistertranslationunitsforeditormessage.h"
|
||||||
#include "cmbunregistertranslationunitsforeditormessage.h"
|
#include "cmbunregistertranslationunitsforeditormessage.h"
|
||||||
|
|
||||||
#include <utils/hostosinfo.h>
|
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QMetaMethod>
|
#include <QMetaMethod>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
@@ -183,10 +181,13 @@ void ConnectionClient::endProcess(QProcess *process)
|
|||||||
|
|
||||||
void ConnectionClient::terminateProcess(QProcess *process)
|
void ConnectionClient::terminateProcess(QProcess *process)
|
||||||
{
|
{
|
||||||
if (!Utils::HostOsInfo::isWindowsHost() && isProcessIsRunning()) {
|
Q_UNUSED(process)
|
||||||
|
#ifndef Q_OS_WIN32
|
||||||
|
if (isProcessIsRunning()) {
|
||||||
process->terminate();
|
process->terminate();
|
||||||
process->waitForFinished();
|
process->waitForFinished();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConnectionClient::killProcess(QProcess *process)
|
void ConnectionClient::killProcess(QProcess *process)
|
||||||
|
|||||||
Reference in New Issue
Block a user