Commit 2b318539 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix logic in device configurations dialog.

Don't do anything when the "emulator" or "hardware" buttons are
clicked and are already checked.
parent addc149b
......@@ -274,12 +274,14 @@ void MaemoDeviceConfigurationsSettingsWidget::configNameEditingFinished()
void MaemoDeviceConfigurationsSettingsWidget::deviceTypeChanged()
{
const QString name = currentConfig().name;
const MaemoDeviceConfig::DeviceType devType =
m_ui->deviceButton->isChecked()
? MaemoDeviceConfig::Physical
: MaemoDeviceConfig::Simulator;
if (currentConfig().type == devType)
return;
const QString name = currentConfig().name;
if (devType == MaemoDeviceConfig::Simulator) {
m_lastConfigHW = currentConfig();
currentConfig() = m_lastConfigSim;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment