Return more defaults for last (empty) row of FieldModel

This commit is contained in:
Marius Kittler 2018-11-22 21:59:03 +01:00
parent d9dd05f488
commit fb83048517
1 changed files with 8 additions and 0 deletions

View File

@ -136,6 +136,14 @@ QVariant FieldModel::data(const QModelIndex &index, int role) const
default:;
}
break;
case Key:
case Value:
case AlwaysActualValue:
return QString();
case IsPassword:
return false;
case IsLastRow:
return true;
default:;
}
}