forked from qt-creator/qt-creator
Maemo: Fix config name change getting lost in settings widget.
This commit is contained in:
@@ -251,6 +251,7 @@ void MaemoSettingsWidget::configNameEditingFinished()
|
|||||||
|
|
||||||
void MaemoSettingsWidget::deviceTypeChanged()
|
void MaemoSettingsWidget::deviceTypeChanged()
|
||||||
{
|
{
|
||||||
|
const QString name = currentConfig().name;
|
||||||
const MaemoDeviceConfig::DeviceType devType =
|
const MaemoDeviceConfig::DeviceType devType =
|
||||||
m_ui->deviceButton->isChecked()
|
m_ui->deviceButton->isChecked()
|
||||||
? MaemoDeviceConfig::Physical
|
? MaemoDeviceConfig::Physical
|
||||||
@@ -263,6 +264,7 @@ void MaemoSettingsWidget::deviceTypeChanged()
|
|||||||
m_lastConfigSim = currentConfig();
|
m_lastConfigSim = currentConfig();
|
||||||
currentConfig() = m_lastConfigHW;
|
currentConfig() = m_lastConfigHW;
|
||||||
}
|
}
|
||||||
|
currentConfig().name = name;
|
||||||
fillInValues();
|
fillInValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user