Commit ce2635f5 authored by Laurent Montel's avatar Laurent Montel 😁

Try to make it editable

parent 75ab1857
......@@ -324,7 +324,19 @@ bool AttachmentModel::setData(const QModelIndex &index, const QVariant &value, i
bool emitDataChanged = true;
AttachmentPart::Ptr part = d->parts[ index.row() ];
if (role == Qt::CheckStateRole) {
if (role == Qt::DisplayRole) {
switch (index.column()) {
case NameColumn:
if (!value.toString().isEmpty()) {
part->setName(value.toString());
} else {
return false;
}
break;
default:
return false;
}
} else if (role == Qt::CheckStateRole) {
switch (index.column()) {
case CompressColumn:
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment