OSDN Git Service

RemoteLinux: Disable some actions for auto-detected devices.
authorChristian Kandeler <christian.kandeler@nokia.com>
Tue, 11 Oct 2011 05:55:59 +0000 (07:55 +0200)
committerChristian Kandeler <christian.kandeler@nokia.com>
Tue, 11 Oct 2011 06:03:03 +0000 (08:03 +0200)
- Host address and port are part of the service discovery; therefore, it
makes no sense to change them.
- Interactive removal of an auto-detected device configuration should
also not be possible, as that would likely confuse the code that added
it.

Change-Id: I7250462fa619ed4cd5a85ad44eeaa8ec1f8861d2
Reviewed-on: http://codereview.qt-project.org/6398
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
src/plugins/remotelinux/linuxdeviceconfigurationssettingswidget.cpp

index 6381f6b..a073788 100644 (file)
@@ -218,6 +218,9 @@ void LinuxDeviceConfigurationsSettingsWidget::displayCurrent()
         m_ui->keyButton->setChecked(true);
     m_nameValidator->setDisplayName(current->name());
     m_ui->timeoutSpinBox->setValue(sshParams.timeout);
+    m_ui->removeConfigButton->setEnabled(!current->isAutoDetected());
+    m_ui->hostLineEdit->setEnabled(!current->isAutoDetected());
+    m_ui->sshPortSpinBox->setEnabled(!current->isAutoDetected());
     fillInValues();
 }