get rid of QT3_SUPPORT and some cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14759 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-17 08:58:35 +00:00
parent a9a6a5447d
commit 9aac0f789a

View File

@ -32,11 +32,11 @@ namespace {
void uniqueInsert(QComboBox * box, QString const & text)
{
for (int i = 0; i < box->count(); ++i) {
if (box->text(i) == text)
if (box->itemText(i) == text)
return;
}
box->insertItem(text);
box->addItem(text);
}
};