Commit 451732a3 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Device support: Allow interactive removal of auto-detected devices.



Now that there is no such thing as "inactive" devices anymore, users
need a way to get rid of devices that were at some point auto-detected
but are no longer present and won't be needed anymore. This is achieved
by making auto-detected devices removable if (and only if) they are
currently in the disconnected state.

Change-Id: Ibcdbf93170507550b6483aa33f428d2504baceb7
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 7bf21ea9
......@@ -213,7 +213,8 @@ void DeviceSettingsWidget::displayCurrent()
}
m_ui->deviceStateValueTextLabel->setText(current->deviceStateToString());
m_ui->removeConfigButton->setEnabled(!current->isAutoDetected());
m_ui->removeConfigButton->setEnabled(!current->isAutoDetected()
|| current->deviceState() == IDevice::DeviceDisconnected);
fillInValues();
}
......
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