mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-14 16:09:09 -05:00
Various minor bug fixes / enhancements
* Fix issues when Config options were renamed * Fix compile issues when using clang 10 * Rearrange database menu icons and import database menu icons * Set minimum size of MainWindow to 800 to prevent search bar from hiding * Fix not saving password generator options when closing the standalone generator * Add headers to health check reports * Don't show hidden content dots when notes are hidden but empty. * Fix saving new database files in SMB shares on Windows, fixes #4809 * Gracefully handle duplicate attachments : Instead of bailing out with an error, prepend a random string to the name of duplicate attachment records. This prevents data loss from other programs that mishandled KDBX XML writing. Fixes #2493 * Properly handle blocked import of signed KeeShare database, fixes #4413
This commit is contained in:
parent
e36cba703e
commit
c830f85c09
19 changed files with 101 additions and 80 deletions
|
|
@ -185,14 +185,16 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
|||
}
|
||||
return result;
|
||||
case Notes:
|
||||
// Display only first line of notes in simplified format if not hidden
|
||||
if (config()->get(Config::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"));
|
||||
if (!entry->notes().isEmpty()) {
|
||||
if (config()->get(Config::Security_HideNotes).toBool()) {
|
||||
result = EntryModel::HiddenContentDisplay;
|
||||
} else {
|
||||
// Display only first line of notes in simplified format if not hidden
|
||||
result = entry->notes().section("\n", 0, 0).simplified();
|
||||
}
|
||||
if (attr->isReference(EntryAttributes::NotesKey)) {
|
||||
result.prepend(tr("Ref: ", "Reference abbreviation"));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
case Expires:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue