If the comment is correct, this code is not needed anymore

This was introduced at 3da25187.
This commit is contained in:
Jean-Marc Lasgouttes 2024-10-23 13:39:52 +02:00
parent 8837f8ca8c
commit 0a4f7db022

View File

@ -66,10 +66,6 @@ bool GuiIdListModel::setData(QModelIndex const & index,
if (role == Qt::DecorationRole) if (role == Qt::DecorationRole)
// nothing to do // nothing to do
return true; return true;
if (role == Qt::UserRole - 1)
// This role is set by Qt <= 5.5 if setEditable()
// of the item is false
return true;
// If we assert here, it's because we're trying to set an // If we assert here, it's because we're trying to set an
// unrecognized role. // unrecognized role.
LATTEST(false); LATTEST(false);