forked from qt-creator/qt-creator
iOS: Avoid double-indirection between DeviceTypeAspect and run config
No need to leave the aspect context. Change-Id: I96a93f7c85d8bbb1fdc28352a4c70a29bc510e4c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user