Empty titles should be nulls in the db

This commit is contained in:
Luis Ángel San Martín 2022-08-13 16:10:00 +02:00
parent c5c4b96bbf
commit 160604040e

View File

@ -615,7 +615,8 @@ void PropertiesDialog::save()
bool edited = false;
if (title->isModified()) {
itr->info.title = title->text();
auto titleString = title->text();
itr->info.title = titleString.isEmpty() ? QVariant() : title->text();
edited = true;
}