mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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;
|
bool edited = false;
|
||||||
|
|
||||||
if (title->isModified()) {
|
if (title->isModified()) {
|
||||||
itr->info.title = title->text();
|
auto titleString = title->text();
|
||||||
|
itr->info.title = titleString.isEmpty() ? QVariant() : title->text();
|
||||||
edited = true;
|
edited = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user