Commit a377e941 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Remove obsolete code

Reviewed-by: Friedemann Kleint
parent 3e29ede5
...@@ -188,9 +188,7 @@ void BaseQt4ProjectWizardDialog::init(bool showModulesPage) ...@@ -188,9 +188,7 @@ void BaseQt4ProjectWizardDialog::init(bool showModulesPage)
QtVersionManager *vm = QtVersionManager::instance(); QtVersionManager *vm = QtVersionManager::instance();
if (showModulesPage) if (showModulesPage)
m_modulesPage = new ModulesPage; m_modulesPage = new ModulesPage;
if (vm->supportedTargetIds().count() > 1 || m_targetsPage = new TargetsPage;
vm->versions().count() > 1)
m_targetsPage = new TargetsPage;
} }
int BaseQt4ProjectWizardDialog::addModulesPage(int id) int BaseQt4ProjectWizardDialog::addModulesPage(int id)
...@@ -206,9 +204,6 @@ int BaseQt4ProjectWizardDialog::addModulesPage(int id) ...@@ -206,9 +204,6 @@ int BaseQt4ProjectWizardDialog::addModulesPage(int id)
int BaseQt4ProjectWizardDialog::addTargetsPage(QSet<QString> targets, int id) int BaseQt4ProjectWizardDialog::addTargetsPage(QSet<QString> targets, int id)
{ {
if (!m_targetsPage)
return -1;
m_targetsPage->setValidTargets(targets); m_targetsPage->setValidTargets(targets);
if (!m_targetsPage->needToDisplayPage()) if (!m_targetsPage->needToDisplayPage())
......
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