Skip to content
Snippets Groups Projects
Commit 76008cda authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Do not save unconfigured Qt versions

Do not save Qt versions without a qmake set. Makes no sense to keep
those.
parent 8de03ac2
No related branches found
No related tags found
No related merge requests found
......@@ -748,7 +748,12 @@ void QtOptionsPageWidget::updateCurrentGcceDirectory()
QList<QSharedPointerQtVersion> QtOptionsPageWidget::versions() const
{
return m_versions;
QList<QSharedPointerQtVersion> result;
for (int i = 0; i < m_versions.count(); ++i) {
if (m_versions.at(i)->qmakeCommand() != m_specifyPathString)
result.append(m_versions.at(i));
}
return result;
}
QString QtOptionsPageWidget::searchKeywords() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment