Qt: Make sure clean up does not remove autodetected Qts

This commit is contained in:
Tobias Hunger
2011-04-07 14:33:26 +02:00
parent 0101764c48
commit 3960bfa4cb

View File

@@ -306,7 +306,7 @@ void QtOptionsPageWidget::cleanUpQtVersions()
{ {
QStringList toRemove; QStringList toRemove;
foreach (const QtVersion *v, m_versions) { foreach (const QtVersion *v, m_versions) {
if (!v->isValid()) if (!v->isValid() && !v->isAutodetected())
toRemove.append(v->displayName()); toRemove.append(v->displayName());
} }