Disable the 'Add to project' part when there are no projects

Or when the list is empty because it is not supported, like when
creating a new project.

Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Thorbjørn Lindeijer
2010-03-23 17:50:25 +01:00
parent 6c5bebe1c4
commit f3ebc43707
2 changed files with 9 additions and 2 deletions

View File

@@ -53,6 +53,8 @@ void ProjectWizardPage::setProjects(const QStringList &p)
{
m_ui->projectComboBox->clear();
m_ui->projectComboBox->addItems(p);
m_ui->projectComboBox->setEnabled(p.size() > 1);
m_ui->projectLabel->setEnabled(p.size() > 1);
}
void ProjectWizardPage::setProjectToolTips(const QStringList &t)