Do not show entry content if it has less than 15 characters

This commit is contained in:
Muki 2019-03-13 19:56:48 +01:00
parent 825fd9388b
commit 0c2757613b

View file

@ -260,8 +260,11 @@ int EntryModel::createItems(int offset, int limit)
.replace(QChar::ObjectReplacementCharacter,QChar(0x0020)).trimmed();
#endif
QString content = content0.simplified();
if (content.length()>1000)
if (content.length()>1000) {
content = content.left(997)+"...";
} else if (content.length() < 15) {
content.clear();
}
doc.setHtml((*i).title);
QString title = doc.toPlainText()