mirror of
https://github.com/YACReader/yacreader
synced 2025-11-29 05:52:47 -05:00
Empty titles should be nulls in the db
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user