forked from qt-creator/qt-creator
iOS: Avoid one use of runconfiguration in IosRunner
Change-Id: If0f1e4a64db692ad373fc73087dd1f5c329a3832 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -98,7 +98,6 @@ IosRunner::IosRunner(RunControl *runControl)
|
||||
stopRunningRunControl(runControl);
|
||||
auto runConfig = qobject_cast<IosRunConfiguration *>(runControl->runConfiguration());
|
||||
m_bundleDir = runConfig->bundleDirectory().toString();
|
||||
m_arguments = runControl->aspect<ArgumentsAspect>()->arguments(runConfig->macroExpander());
|
||||
m_device = DeviceKitAspect::device(runControl->target()->kit());
|
||||
m_deviceType = runConfig->deviceType();
|
||||
}
|
||||
@@ -199,7 +198,8 @@ void IosRunner::start()
|
||||
connect(m_toolHandler, &IosToolHandler::finished,
|
||||
this, &IosRunner::handleFinished);
|
||||
|
||||
QStringList args = QtcProcess::splitArgs(m_arguments, OsTypeMac);
|
||||
const Runnable runnable = runControl()->runnable();
|
||||
QStringList args = QtcProcess::splitArgs(runnable.commandLineArguments, OsTypeMac);
|
||||
if (m_qmlServerPort.isValid()) {
|
||||
QUrl qmlServer;
|
||||
qmlServer.setPort(m_qmlServerPort.number());
|
||||
|
||||
@@ -83,7 +83,6 @@ private:
|
||||
|
||||
IosToolHandler *m_toolHandler = nullptr;
|
||||
QString m_bundleDir;
|
||||
QString m_arguments;
|
||||
ProjectExplorer::IDevice::ConstPtr m_device;
|
||||
IosDeviceType m_deviceType;
|
||||
bool m_cppDebug = false;
|
||||
|
||||
Reference in New Issue
Block a user