mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix OBJ view item flags
This commit is contained in:
parent
b955933427
commit
e03b1486e4
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue