diff --git a/src/plugins/ios/iosrunconfiguration.cpp b/src/plugins/ios/iosrunconfiguration.cpp index d25da00fd99..b49f383051b 100644 --- a/src/plugins/ios/iosrunconfiguration.cpp +++ b/src/plugins/ios/iosrunconfiguration.cpp @@ -346,7 +346,7 @@ void IosDeviceTypeAspect::setDeviceTypeIndex(int devIndex) void IosDeviceTypeAspect::updateValues() { - bool showDeviceSelector = m_runConfiguration->deviceType().type != IosDeviceType::IosDevice; + bool showDeviceSelector = deviceType().type != IosDeviceType::IosDevice; m_deviceTypeLabel->setVisible(showDeviceSelector); m_deviceTypeComboBox->setVisible(showDeviceSelector); if (showDeviceSelector && m_deviceTypeModel.rowCount() == 0) { @@ -359,7 +359,7 @@ void IosDeviceTypeAspect::updateValues() } } - IosDeviceType currentDType = m_runConfiguration->deviceType(); + IosDeviceType currentDType = deviceType(); QVariant currentData = m_deviceTypeComboBox->currentData(); if (currentDType.type == IosDeviceType::SimulatedDevice && !currentDType.identifier.isEmpty() && (!currentData.isValid()