Add 'Remember my choice' checkbox

Allow user to store preference when asked whether to execute command, resolves #51
This commit is contained in:
Janek Bevendorff 2017-01-28 14:18:43 +01:00
parent 0116d4176a
commit 01e9d39b63
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
5 changed files with 48 additions and 10 deletions

View file

@ -434,6 +434,9 @@ void EditEntryWidget::saveEntry()
void EditEntryWidget::updateEntryData(Entry* entry) const
{
entry->attributes()->copyCustomKeysFrom(m_entryAttributes);
entry->attachments()->copyDataFrom(m_entryAttachments);
entry->setTitle(m_mainUi->titleEdit->text());
entry->setUsername(m_mainUi->usernameEdit->text());
entry->setUrl(m_mainUi->urlEdit->text());
@ -443,9 +446,6 @@ void EditEntryWidget::updateEntryData(Entry* entry) const
entry->setNotes(m_mainUi->notesEdit->toPlainText());
entry->attributes()->copyCustomKeysFrom(m_entryAttributes);
entry->attachments()->copyDataFrom(m_entryAttachments);
IconStruct iconStruct = m_iconsWidget->state();
if (iconStruct.number < 0) {