diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 405de949..00a4f589 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -185,8 +185,12 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const } return result; case Notes: - // Display only first line of notes in simplified format - result = entry->notes().section("\n", 0, 0).simplified(); + // Display only first line of notes in simplified format if not hidden + if (config()->get("security/hidenotes").toBool()) { + result = EntryModel::HiddenContentDisplay; + } else { + result = entry->notes().section("\n", 0, 0).simplified(); + } if (attr->isReference(EntryAttributes::NotesKey)) { result.prepend(tr("Ref: ", "Reference abbreviation")); }