Commit 37dec964 authored by Daniel Teske's avatar Daniel Teske

QtVersion: Allow the user to rename autodetected qt versions

Task-number: QTCREATORBUG-9787
Change-Id: Id6fc29ea5466c76ffd8f2cddc2cc7583395b9ba3
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3f9380ae
......@@ -1026,7 +1026,7 @@ void QtOptionsPageWidget::updateWidgets()
const bool enabled = version != 0;
const bool isAutodetected = enabled && version->isAutodetected();
m_ui->delButton->setEnabled(enabled && !isAutodetected);
m_versionUi->nameEdit->setEnabled(enabled && !isAutodetected);
m_versionUi->nameEdit->setEnabled(enabled);
m_versionUi->editPathPushButton->setEnabled(enabled && !isAutodetected);
}
......
......@@ -294,6 +294,7 @@ void QtVersionManager::updateFromInstaller(bool emitSignal)
qDebug() << " Qt version found with same autodetection source" << autoDetectionSource << " => Migrating id:" << id;
m_versions.remove(id);
qtversionMap[QLatin1String(Constants::QTVERSIONID)] = id;
qtversionMap[QLatin1String(Constants::QTVERSIONNAME)] = v->displayName();
delete v;
if (BaseQtVersion *qtv = factory->restore(type, qtversionMap)) {
......
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