Fix projectdbmodel

This commit is contained in:
Claveau Joshua
2020-07-12 12:33:42 +02:00
parent 28ea80d458
commit b9a34ce2fd

View File

@@ -369,7 +369,8 @@ void ProjectDBModel::fillValue()
auto i=0;
while (query_.value(i).isValid())
{
if (query_.value(i).canConvert(QMetaType::QDate)) {
auto date = query_.value(i).toDate();
if (!date.isNull()) {
record_ << QLocale::system().toString(query_.value(i).toDate(), QLocale::ShortFormat);
} else {
record_ << query_.value(i).toString();