mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-21 03:05:35 -05:00
Add menu entry to copy an entry attribute to clipboard.
This commit is contained in:
parent
18337927f5
commit
ddd5e8a209
7 changed files with 71 additions and 3 deletions
|
|
@ -274,6 +274,17 @@ void DatabaseWidget::copyPassword()
|
|||
clipboard()->setText(currentEntry->password());
|
||||
}
|
||||
|
||||
void DatabaseWidget::copyAttribute(QAction* action)
|
||||
{
|
||||
Entry* currentEntry = m_entryView->currentEntry();
|
||||
if (!currentEntry) {
|
||||
Q_ASSERT(false);
|
||||
return;
|
||||
}
|
||||
|
||||
clipboard()->setText(currentEntry->attributes()->value(action->text()));
|
||||
}
|
||||
|
||||
void DatabaseWidget::performAutoType()
|
||||
{
|
||||
Entry* currentEntry = m_entryView->currentEntry();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue