mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-19 22:42:23 -05:00
Correct regression to ssh-agent from entry attachment refactor
This commit is contained in:
parent
497eb3c587
commit
cc1ab94a4f
3 changed files with 29 additions and 6 deletions
|
|
@ -106,6 +106,23 @@ void EntryAttachmentsWidget::setButtonsVisible(bool buttonsVisible)
|
|||
emit buttonsVisibleChanged(m_buttonsVisible);
|
||||
}
|
||||
|
||||
QByteArray EntryAttachmentsWidget::getAttachment(const QString &name)
|
||||
{
|
||||
return m_entryAttachments->value(name);
|
||||
}
|
||||
|
||||
void EntryAttachmentsWidget::setAttachment(const QString &name, const QByteArray &value)
|
||||
{
|
||||
m_entryAttachments->set(name, value);
|
||||
}
|
||||
|
||||
void EntryAttachmentsWidget::removeAttachment(const QString &name)
|
||||
{
|
||||
if (!isReadOnly() && m_entryAttachments->hasKey(name)) {
|
||||
m_entryAttachments->remove(name);
|
||||
}
|
||||
}
|
||||
|
||||
void EntryAttachmentsWidget::insertAttachments()
|
||||
{
|
||||
Q_ASSERT(!isReadOnly());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue