Enable entry actions when editing an entry

* Fixes #2118

Enables select entry actions when editing an entry. This allows users to copy the password of the entry, for example.

Note: unsaved changes to the entry will not be copied to the clipboard.
This commit is contained in:
Jonathan White 2019-10-20 18:28:58 -04:00
parent 1e694271a3
commit 56a3e4d680
5 changed files with 77 additions and 42 deletions

View file

@ -809,13 +809,9 @@ void EditEntryWidget::toggleHideNotes(bool visible)
m_mainUi->notesHint->setVisible(!visible);
}
QString EditEntryWidget::entryTitle() const
Entry* EditEntryWidget::currentEntry() const
{
if (m_entry) {
return m_entry->title();
} else {
return QString();
}
return m_entry;
}
void EditEntryWidget::loadEntry(Entry* entry,