remove duplicate entries in File->New->Header, project combobox. also, sort that list

This commit is contained in:
hjk
2009-06-30 14:49:35 +02:00
parent 5797b28f9c
commit ac8e371486

View File

@@ -53,8 +53,11 @@ ProjectWizardPage::~ProjectWizardPage()
void ProjectWizardPage::setProjects(const QStringList &l)
{
QStringList list = l;
list.removeDuplicates();
list.sort();
m_ui->projectComboBox->clear();
m_ui->projectComboBox->addItems(l);
m_ui->projectComboBox->addItems(list);
}
void ProjectWizardPage::setAddToProjectEnabled(bool b)