mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04: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