Qt/RegisterColumn: Fix value columns not being editable

This commit is contained in:
spycrab 2018-01-28 00:32:13 +01:00
parent c81ac1a81d
commit d0b64745d8

View File

@ -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));
}