Add method to retreive valid Qt versions only

This commit is contained in:
Tobias Hunger
2010-03-26 10:37:05 +01:00
parent 74ae8314df
commit 4c5ce80141
3 changed files with 16 additions and 7 deletions

View File

@@ -89,12 +89,7 @@ ProjectLoadWizard::ProjectLoadWizard(Qt4Project *project, QWidget *parent, Qt::W
// The default buildConfiguration depends on QmakeBuildConfig::DebugBuild
// Also if the qt version is not yet in the Tools Options dialog we offer to add it there
QList<QtVersion *> validVersions;
foreach (QtVersion * v, vm->versions()) {
if (v->isValid())
validVersions.append(v);
}
QList<QtVersion *> validVersions = vm->validVersions();
if (m_importVersion)
setupImportPage(m_importVersion, m_importBuildConfig, m_additionalArguments);
else if (validVersions.count() > 1)