Commit 1b43d193 authored by dt's avatar dt
Browse files

Make newly added Qt Versions the default if the old one is invalid

After installation on Windows, the default Qt in PATH is invalid, adding
a new version now automatically makes that one also the default.
parent ea567171
......@@ -300,6 +300,11 @@ void QtOptionsPageWidget::addQtDir()
m_ui->defaultCombo->addItem(newVersion->name());
m_ui->nameEdit->setFocus();
m_ui->nameEdit->selectAll();
if (!m_versions.at(m_defaultVersion)->isValid()) {
m_defaultVersion = m_versions.count() - 1;
m_ui->defaultCombo->setCurrentIndex(m_versions.count() - 1);
}
}
void QtOptionsPageWidget::removeQtDir()
......
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