Qt/RegisterColumn: Fix value columns not being editable
This commit is contained in:
parent
c81ac1a81d
commit
d0b64745d8
|
@ -16,7 +16,8 @@ RegisterColumn::RegisterColumn(RegisterType type, std::function<u64()> get,
|
|||
RefreshValue();
|
||||
Update();
|
||||
|
||||
setFlags(set == nullptr ? flags() ^ Qt::ItemIsEditable : flags());
|
||||
setFlags(m_set_register == nullptr ? flags() ^ Qt::ItemIsEditable :
|
||||
Qt::ItemIsEditable | Qt::ItemIsEnabled);
|
||||
setData(DATA_TYPE, static_cast<quint32>(type));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue