mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Split EditWidgetIcons::save() into state() and reset().
This commit is contained in:
committed by
Jonathan White
parent
61ce733c6f
commit
8f87b5cfd4
@@ -430,7 +430,7 @@ void EditEntryWidget::saveEntry()
|
||||
m_entry->attributes()->copyCustomKeysFrom(m_entryAttributes);
|
||||
m_entry->attachments()->copyDataFrom(m_entryAttachments);
|
||||
|
||||
IconStruct iconStruct = m_iconsWidget->save();
|
||||
IconStruct iconStruct = m_iconsWidget->state();
|
||||
|
||||
if (iconStruct.number < 0) {
|
||||
m_entry->setIcon(Entry::DefaultIconNumber);
|
||||
@@ -489,6 +489,7 @@ void EditEntryWidget::clear()
|
||||
m_entryAttachments->clear();
|
||||
m_autoTypeAssoc->clear();
|
||||
m_historyModel->clear();
|
||||
m_iconsWidget->reset();
|
||||
}
|
||||
|
||||
void EditEntryWidget::togglePasswordGeneratorButton(bool checked)
|
||||
|
||||
Reference in New Issue
Block a user