GuiIdListModel: ignore DecorationRole (icons of available list)

This commit is contained in:
Juergen Spitzmueller 2019-04-20 17:50:21 +02:00
parent b60259fbe1
commit e325c7cc6a

View File

@ -63,6 +63,9 @@ bool GuiIdListModel::setData(QModelIndex const & index,
dataChanged(index, index);
return true;
}
if (role == Qt::DecorationRole)
// nothing to do
return true;
// If we assert here, it's because we're trying to set an
// unrecognized role.
LATTEST(false);