forked from qt-creator/qt-creator
ScxmlEditor: Modernize
modernize-* Change-Id: I72a72cf5e9327956fdc0e5fc6f552bfc03d2122c Reviewed-by: Marco Benelli <marco.benelli@qt.io>
This commit is contained in:
@@ -50,7 +50,7 @@ bool SCAttributeItemModel::setData(const QModelIndex &index, const QVariant &val
|
||||
|
||||
bool bEditable = m_tag->tagType() <= MetadataItem;
|
||||
|
||||
if (index.row() >= 0 && m_document != 0) {
|
||||
if (index.row() >= 0 && m_document) {
|
||||
if (!bEditable) {
|
||||
if (index.row() < m_tag->info()->n_attributes)
|
||||
m_document->setValue(m_tag, index.row(), value.toString());
|
||||
|
||||
Reference in New Issue
Block a user