Merge pull request #6337 from spycrab/qt_fix_debugger

Qt/RegisterColumn: Fix value columns not being editable
This commit is contained in:
Mat M 2018-01-28 16:42:46 -05:00 committed by GitHub
commit f3826b4e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ RegisterColumn::RegisterColumn(RegisterType type, std::function<u64()> get,
RefreshValue(); RefreshValue();
Update(); 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)); setData(DATA_TYPE, static_cast<quint32>(type));
} }