Mercurial > hg > svcore
diff data/model/ModelDataTableModel.cpp @ 1254:cbdd534f517a piper
Avoid assigning model resolution of 0 to models coming from plugins that report weirdly high output rates (symptom: data did not show up in edit layer data dialog, as the row/frame conversion failed)
author | Chris Cannam |
---|---|
date | Sat, 05 Nov 2016 10:40:22 +0000 |
parents | 2f49be7d4264 |
children | ec9e65fcf749 |
line wrap: on
line diff
--- a/data/model/ModelDataTableModel.cpp Fri Nov 04 14:39:15 2016 +0000 +++ b/data/model/ModelDataTableModel.cpp Sat Nov 05 10:40:22 2016 +0000 @@ -47,7 +47,8 @@ if (!m_model) return QVariant(); if (role != Qt::EditRole && role != Qt::DisplayRole) return QVariant(); if (!index.isValid()) return QVariant(); - return m_model->getData(getUnsorted(index.row()), index.column(), role); + QVariant d = m_model->getData(getUnsorted(index.row()), index.column(), role); + return d; } bool