Qt: Fix OBJ view item flags

This commit is contained in:
Vicki Pfau 2022-04-03 15:38:34 -07:00
parent b955933427
commit e03b1486e4
1 changed files with 1 additions and 0 deletions

View File

@ -266,6 +266,7 @@ void ObjView::updateObjList(int maxObj) {
item->setText(QString::number(i)); item->setText(QString::number(i));
item->setData(Qt::UserRole, i); item->setData(Qt::UserRole, i);
item->setSizeHint(QSize(64, 96)); item->setSizeHint(QSize(64, 96));
item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
if (m_objId == i) { if (m_objId == i) {
item->setSelected(true); item->setSelected(true);
} }