From 13a313ff66063a50fbeb1faa230cf74c066e6dd4 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 5 May 2018 17:58:37 -0400 Subject: [PATCH] Remove resolving placeholders for notes --- src/gui/DetailsWidget.cpp | 2 +- src/gui/entry/EntryModel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/DetailsWidget.cpp b/src/gui/DetailsWidget.cpp index 77de24666..dcabf964f 100644 --- a/src/gui/DetailsWidget.cpp +++ b/src/gui/DetailsWidget.cpp @@ -198,7 +198,7 @@ void DetailsWidget::updateEntryNotesTab() Q_ASSERT(m_currentEntry); const QString notes = m_currentEntry->notes(); setTabEnabled(m_ui->entryTabWidget, m_ui->entryNotesTab, !notes.isEmpty()); - m_ui->entryNotesEdit->setText(m_currentEntry->resolveMultiplePlaceholders(notes)); + m_ui->entryNotesEdit->setText(notes); } void DetailsWidget::updateEntryAttributesTab() diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 6f7ebf6af..8e4fe13db 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -185,7 +185,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const return result; case Notes: // Display only first line of notes in simplified format - result = entry->resolveMultiplePlaceholders(entry->notes().section("\n", 0, 0).simplified()); + result = entry->notes().section("\n", 0, 0).simplified(); if (attr->isReference(EntryAttributes::NotesKey)) { result.prepend(tr("Ref: ", "Reference abbreviation")); }