mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
Empty titles should be nulls in the db
This commit is contained in:
parent
c5c4b96bbf
commit
160604040e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user