forked from qt-creator/qt-creator
ProjectExplorer: Use Runnable in DeviceProcess::start
Change-Id: I8ce5b536745db11980f43449a055b7ebf9da83d2 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "qnxdeviceprocess.h"
|
||||
|
||||
#include <projectexplorer/devicesupport/sshdeviceprocess.h>
|
||||
#include <projectexplorer/runnables.h>
|
||||
#include <ssh/sshconnection.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
@@ -135,9 +136,10 @@ void QnxDeviceConfiguration::updateVersionNumber() const
|
||||
QObject::connect(&versionNumberProcess, SIGNAL(finished()), &eventLoop, SLOT(quit()));
|
||||
QObject::connect(&versionNumberProcess, SIGNAL(error(QProcess::ProcessError)), &eventLoop, SLOT(quit()));
|
||||
|
||||
QStringList arguments;
|
||||
arguments << QLatin1String("-r");
|
||||
versionNumberProcess.start(QLatin1String("uname"), arguments);
|
||||
StandardRunnable r;
|
||||
r.executable = QLatin1String("uname");
|
||||
r.commandLineArguments = QLatin1String("-r");
|
||||
versionNumberProcess.start(r);
|
||||
|
||||
bool isGuiThread = QThread::currentThread() == QCoreApplication::instance()->thread();
|
||||
if (isGuiThread)
|
||||
|
||||
Reference in New Issue
Block a user