From 160604040e5b1233ef9d8c8d5fe20189f154eb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 13 Aug 2022 16:10:00 +0200 Subject: [PATCH] Empty titles should be nulls in the db --- YACReaderLibrary/properties_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/properties_dialog.cpp b/YACReaderLibrary/properties_dialog.cpp index fd1011bd..de30cd73 100644 --- a/YACReaderLibrary/properties_dialog.cpp +++ b/YACReaderLibrary/properties_dialog.cpp @@ -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; }