Commit f3edc4f2 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Make ports line edit read-only for emulator.

Changing this field will not have an effect anyway.
parent 15012924
......@@ -197,10 +197,13 @@ void MaemoDeviceConfigurationsSettingsWidget::displayCurrent()
m_ui->defaultDeviceButton->setEnabled(!current->isDefault());
m_ui->osTypeValueLabel->setText(MaemoGlobal::maemoVersionToString(current->osVersion()));
const SshConnectionParameters &sshParams = current->sshParameters();
if (current->type() == MaemoDeviceConfig::Physical)
if (current->type() == MaemoDeviceConfig::Physical) {
m_ui->deviceTypeValueLabel->setText(tr("Physical Device"));
else
m_ui->portsLineEdit->setReadOnly(false);
} else {
m_ui->deviceTypeValueLabel->setText(tr("Emulator (Qemu)"));
m_ui->portsLineEdit->setReadOnly(true);
}
if (sshParams.authType == Core::SshConnectionParameters::AuthByPwd)
m_ui->passwordButton->setChecked(true);
else
......
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